Router doesn't follow history
See original GitHub issue- Framework7 version: 7.0.7
- Platform and Target: Browser + Cordova
- Live Link or JSFiddle: https://jsfiddle.net/r135p4ws/
Describe the bug
Router back seems like doesn’t follow the history although there is the history: false
option on the middle page (see fiddle)
Scheme of page:
About -> Edit Page (history: false
) -> newPage
To Reproduce
Steps to reproduce the behavior (fiddle):
- Go to page about
- Click on button and go to edit page
- Click on button and go to new page
- Now try to go back you will see that it does not return to the first page
Expected behavior
It should skip the ignored page with the history: false
option and go directly to the previous page (as per history).
page -> editPage -> newPage
page <- newPage
Actual Behavior
The page does not follow history.
page -> editPage (history: false
) -> newPage
page <- editPage(the page doesn’t exist in history but is loaded) <- newPage
Additional context
In the fiddle you will also see the history debug with the routeChanged
event
Issue Analytics
- State:
- Created a year ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
How to view/access the history on my router when it doesn't ...
To track browser history in Internet Explorer 7, 8, 9, 10 and 11, click the "Tools" menu, "Internet Options", click the "Settings" button...
Read more >React Router DOM's Router doesn't accept history correctly
I accidentally installed history as a dev-dependency, which is causing the types to be incompatible. To resolve this, I remove history and ...
Read more >How to Check Router History - Lifewire
Can You Check Wi-Fi History? · Log into your router via your web browser. · Look for something called Outgoing Log Table, System...
Read more >Are there anyway to track people's browser history through my ...
Sonicwall has an embedded firewall application that tracks all of your users internet traffic and displays them in both a list or chart ......
Read more >Router with custom history doesn't render route, only URL is ...
You're using the wrong version of history . 5.x/4.x of Router are only compatible with history 4.x.
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
At a glance, it seems like something as simple as this in
navigate.js
I don’t have an easy way to build and check though 🙈
@peitschie For now i resolve the problem use your tip reloadCurrent for change page from editPage -> newPage and for fix
router.back()
history i used a custom function from another bug report:Seems like
router.back
withignoreCache
without specify the url doesn’t re-load the page instead use cache