[v2] Router go back problem when define 404 route
See original GitHub issueThis is a (multiple allowed):
-
bug
-
Framework7 Version: 2.0.10
-
Platform and Target: iOS
-
Live Link or JSFiddle: http://php-developer.herokuapp.com/frontend/
What you did
When i open view pushState and define the 404 page in routes array, go to page 2 and go to page3, then back page 2 and back to home page. When page 2 back to home page, the page show 404 page, not go to home page.
var app = new Framework7({
root: '#app',
name: 'My App',
id: 'com.myapp.test',
theme: 'ios',
routes: [
{
path: '/',
url: 'page1.html',
},
{
path: '/page2/',
url: 'page2.html',
},
{
path: '/page3/',
url: 'page3.html',
},
{
path: '(.*)',
url: '404.html',
}
],
view: {
pushState: true
}
});
Expected Behavior
Go to the home page.
Actual Behavior
Go to the 404 page.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Vue Router return 404 when revisit to the url - Stack Overflow
And it work fine when I visit to vue routing via v-href or href. But, when I try to refresh that page or...
Read more >Handling 404 Routes in React with a Not Found component
In this post you'll learn how to handle 404 routes in React Router and provide a fallback component for displaying an imfamous 404...
Read more >7.1 Fix Cannot Get/URL on Refresh | React Reach Router
Handing 404 Pages | Fix Cannot Get/URL on Page Refresh | Error | React Router | Reach Router | Handing 404 Pages |...
Read more >Angular Router: Child Routes, Auxiliary Routes, Master Detail
In this post, we are going to do a guided tour of the main routing configuration concepts needed to use the Angular Router...
Read more >React Router DOM: How to handle routing in web apps
A router allows your application to navigate between different components, ... It allows you define routes in the same declarative style:
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
I found a solution
view:{ stackPages:true }
Push state configured not correctly. According to your example,
pushStateRoot
parameter must be set to/frontend/