Framework7: [v3] Router navigate issue

Created on 15 Dec 2017  ·  6Comments  ·  Source: framework7io/framework7

@nolimits4web
app.router.navigate('/');
it redirect us to http://example.com/#!/

Expected: http://example.com/

outdated wontfix

Most helpful comment

Same here, i made a workaround by making the pages stacked and changing the root route to a page instead of a url:

{
path: '/',
pageName: 'main',
name: 'home',
}

Now the 'home' button works and shows the correct html instead of 404 or empty page. However, if i go back to the original page (back button, router back etc), i get a 404 ... dooh

All 6 comments

Same here

Well as F7 is using shebang it would be the expected although a bit silly for /

@ZanderBrown
Then I should use ~/ or what 😅

Same here, i made a workaround by making the pages stacked and changing the root route to a page instead of a url:

{
path: '/',
pageName: 'main',
name: 'home',
}

Now the 'home' button works and shows the correct html instead of 404 or empty page. However, if i go back to the original page (back button, router back etc), i get a 404 ... dooh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yeli19950109 picture yeli19950109  ·  3Comments

DavidGOrtega picture DavidGOrtega  ·  3Comments

seme1 picture seme1  ·  5Comments

nimo23 picture nimo23  ·  4Comments

vousys picture vousys  ·  4Comments