Skip to content

bug: routing breaks after specific sequence of navigations and clicking on ion-back-button #23873

@luxterful

Description

@luxterful

Prequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

After following a specific order of navigation steps the ion-back-button changes the path but the back animation does not happen and the view stays the same.

Expected Behavior

The ion-back-button should trigger the animation and change the view

Steps to Reproduce

Create a blank ionic vue project and create 3 views.

Add those Views to the router and redirect root to view 2

The views have buttons to go to the next view
View 1 -> View 2 -> View 3

The views also have an ion-back-button.

The App starts on view 2

  1. go to view 3
  2. go back
  3. go back
  4. go to view 2
  5. go to view 3
  6. go back
  7. go back

Now the URL shows the path to view 1 but the last animation did not happen and we are still on view 2

ezgif com-gif-maker

Code Reproduction URL

https://github.com/luxterful/ionic-back-routing-issue

Ionic Info

Ionic:

Ionic CLI : 6.16.3 (/home/lukas/.nvm/versions/node/v14.16.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 5.7.0

Capacitor:

Capacitor CLI : 3.2.2
@capacitor/android : not installed
@capacitor/core : 3.2.2
@capacitor/ios : not installed

Utility:

cordova-res : 0.15.3
native-run : 1.4.1

System:

NodeJS : v14.16.1 (/home/lukas/.nvm/versions/node/v14.16.1/bin/node)
npm : 7.11.2
OS : Linux 5.8

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions