simonhaenisch / ionic-nav-bug

Maybe this will be resolved one day πŸ€·πŸ»β€β™‚οΈ

Home Page:https://ionic-nav-bug.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ionic Nav Bug

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:

  1. Go to Ionic's profile page (/profile/ionic).
  2. Go to About page (/about).
  3. 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).

About

Maybe this will be resolved one day πŸ€·πŸ»β€β™‚οΈ

https://ionic-nav-bug.vercel.app


Languages

Language:TypeScript 46.2%Language:CSS 27.3%Language:HTML 26.4%