-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: vue, replacing routes can cause replacement to happen 2x #25017
Comments
Thanks for the issue. The problem here is that we are internally performing the replace operation twice when going to This logic handles wiping the future history when replacing: https://github.com/ionic-team/ionic-framework/blob/main/packages/vue-router/src/router.ts#L374-L375 But in the case of The result is that we lose the previous route history. Now that we are using |
Can you try the following dev build and let me know if it resolves the issue?
|
thanks, it resolve this issue but i found another problem
route path "/a" is correct, but ion-page display "/b" 2022-04-22.2.18.42.mov |
I'm also still facing an issue with the new build that you posted @liamdebeasi My flow is:
|
@outdoorfish Thanks for testing! I can reproduce this behavior. However, I can reproduce this behavior with the latest version of Ionic, so this does not appear to be caused by the dev build. Additionally, navigating across tabs is an anti-pattern and not something we support. Tabs are design to be individual stacks that do not interact, so going from Tab A to Tab B programmatically is not something developers should do in their app (even if there's additional redirects in there). Another way to think of this: Tabs should only be switched by a user pressing a tab button in the tab bar. @Jannik-KJ This does not sound related to the issue described on this thread. Can you open a separate issue? |
@liamdebeasi Ah okay sorry, think it relates to this then #24303 |
Thanks for the issue. This has been resolved via #25171, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
sometimes back button not work
Expected Behavior
back button working
Steps to Reproduce
issue 1
issue 2
2022-03-31.11.33.40.mov
2022-03-31.11.34.16.mov
Code Reproduction URL
https://github.com/outdoorfish/ionic-back-button-issue
Ionic Info
Ionic:
Ionic CLI : 6.18.1
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v14.16.0
npm : 6.14.11
OS : macOS Big Sur
Additional Information
No response
The text was updated successfully, but these errors were encountered: