vuejs / router

🚦 The official router for Vue.js
https://router.vuejs.org/
MIT License
3.74k stars 1.15k forks source link

Under certain conditions, its possible to render the `router.back()` & `history.back()` ineffective. #2259

Closed MatthewAry closed 1 month ago

MatthewAry commented 1 month ago

Reproduction

https://github.com/MatthewAry/vuetify-17176

Steps to reproduce the bug

The reasons why the back navigation can stop working is unknown. It might be something is corrupting the history state, but I can't be sure. https://github.com/vuejs/router/assets/157217/9734e88d-2683-4e14-bd7a-02f71798089c

Expected behavior

I should be able to go back.

Actual behavior

Unable to go back. URL bar flickers to the right address, but the current route doesn't change. Navigation doesn't change. History doesn't get popped.

Additional information

No response