bug: vue, back button not finding correct route info
See original GitHub issuePrequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
Current Behavior
The back button stops working under certain scenarios
Expected Behavior
The back button should work
Steps to Reproduce
- Clone the linked repo
ionic serve
- Click
Topics
>Topic 1
>Article 1
- Click the back button (not the browser back button) to get back to
Topics
- Click
Topics
>Topic 2
>Article 1
orArticle 2
- The back button will no longer work
Code Reproduction URL
https://github.com/GC-Mark/testing-app
Ionic Info
Ionic:
Ionic CLI : 6.17.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 5.8.1
Capacitor:
Capacitor CLI : 3.2.3
@capacitor/android : not installed
@capacitor/core : 3.2.3
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.3
native-run : 1.4.1
System:
NodeJS : v15.14.0 (/usr/local/bin/node)
npm : 7.24.1
OS : macOS Big Sur
Additional Information
https://user-images.githubusercontent.com/1477806/134936973-44a7acf0-4fdb-4e6e-b96d-04119329b967.mov
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Browser Back Button in vue-router doesn't do anything
FYI - We ended up just switching to history mode. According to this git commit though, updating to vue-router@3.4.9 should fix it ...
Read more >How to deal with the back button in Vue? - Laracasts
I've noticed in my vue/laravel project that if I press the back button on the browser it doesn't repopulate my data. What is...
Read more >How to correctly use routing with Vue in Ionic
After going through the forums, I found a solution by using @click="router.push('/tab/page/${id}'): on my ion-item. That correctly goes to the ...
Read more >Testing Vue Router
Notice that Vue Test Utils does not provide any special functions to assist with ... We could use a real router, then navigate...
Read more >ROUTE NAVIGATION & PARAMETERS | VueJS - YouTube
This video dives into Routing and how to navigate around and pass parameters. ... 112K views 6 years ago Vue.js 2 - Getting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic-framework/pull/24060, and a fix will be available in an upcoming release of Ionic Framework.
Feel free to keep testing that dev build and let me know if you run into any issues. Thanks!
I have checked the specific problem in our app and can confirm that #24060 seems to have fixed the issue 👍