Reproduces a bug with ion-nav
's pop
method: ionic-team/ionic-framework#19030.
Deployed on https://ionic-nav-bug.vercel.app.
The routes are set up in a way where two different routes render the same component:
<ion-router useHash={false}>
<ion-route url="/" component="app-home" />
<ion-route url="/about" component="app-about" />
<ion-route url="/profile" component="app-profile" />
<ion-route url="/profile/:name" component="app-profile" />
</ion-router>
To reproduce, do the following:
- Go to Ionic's profile page (
/profile/ionic
). - Go to About page (
/about
). - Click the
ion-back-button
(not the browser's back button).
Expected:
Goes back to /profile/ionic
route and shows Ionic's profile.
Actual:
It shows Ionic's profile, but the route goes to /profile
(drops the "name" route prop).