You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: ion-router-outlet does not show correct page after vue-router navigation guard was used #29721
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
The ion-router-outlet shows the wrong page after a vue-router navigation guard was used.
Given:
ion-page Home
ion-page Register
ion-page Profile
When:
A user registers using the following flow: Home -> Register -> Profile.
The transition from Home -> Register uses router.push.
The transition from Register -> Profile uses router.replace.
Being on the Profile page, back navigation is prevented using a navigation guard (see example).
Then:
After a logout (Profile -> Home), it's not possible to log in again (Home -> Profile) because the ion-router-outlet shows the wrong page although the path was changed to /profile.
Expected Behavior
The correct ion-page should be displayed after a navigation guard prevented the user from going back.
The Profile page should be displayed.
Steps to Reproduce
go to Home page
click on "REGISTER"
click on "SIGN UP"
try to go one step back in history, e.g. by using the back button on the mouse
I am experiencing a similar problem when signing in and and signing out using tabs. When i sign back in from just signing out, the logout tab is shown instead of the the dashboard tab (which does correctly show in the url and also loads the data correctly). I am also using navigation guards so this might involve this problem.
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.
Activity
NRodriguezcuellar commentedon Aug 6, 2024
I am experiencing a similar problem when signing in and and signing out using tabs. When i sign back in from just signing out, the logout tab is shown instead of the the dashboard tab (which does correctly show in the url and also loads the data correctly). I am also using navigation guards so this might involve this problem.
MarvinRucinski commentedon Nov 8, 2024
issue still present
MarvinRucinski commentedon Nov 9, 2024
#29769 does not fix it for me
fix(vue-router): clear navigation info when a guard aborts navigation (…
ionitron-bot commentedon Oct 4, 2026
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.