I have three different pages, on iOS, when going back with swipe gesture, back on the first page this first page (/home/) does not appear but the message:
Sorry, Requested content not found.
Also, if I check the route with
$$(document).on('page:init', '.page', function (e) {
console.log(app.views.main.router.currentRoute);
});
there is no route showing in the console for the first page/homepage.
Ok, changed that back. I used ‘home’ instead of ‘/’ because my home-page is not loaded when reloading in browser:
browserHistory: true,
→ click to a link to a page “users”
→ then go back to the homepage (click on link)
→ Reload site trough browser reload button → I land on the “user” page and not on home.
With ‘home’ instead of ‘/’ this problem is solved…
Back link from users to home should be a link with back class to properly handle history, in your case you do navigation forward to home page
You have wrong browserHistory config, you app is not on the root of the server, so you need to correctly specify browserHistoryRoot parameter. Right now your home page route detected as the following one:
still shows /homework/f7/ but it must be /, which means you set wrong browserHistoryRoot, it shouldn’t include the domain itself, only path, e.g. try /homework/f7/ or /homework/f7