I have and app with back buttons just using the classes “link back” this works fine in browser and android, also the android back button seems to be working correctly but on iPhone when I navigate from the home page to any page after launching the app the back button doesn’t work but if I go to a second page the back button will work, once but it will never bring me back to the index page.
My route.js file below so for example, I launch the app and go to log-call.html the back button doesn’t work, if I go to another page e.g. activity-overview.html’ the back button will bring me back to log-call.html but again won’t work to bring me back to index.html. From the index.html page only 3 pages can be accessed (log-call.html, activity.html, & messages.html) and the behaviour is the same if they are the first page accessed the back button doesn’t work but if the are accessed from one of the other pages back will work. I can visit multiple pages and back will work all the way back to the second page but never bring me to the index.html
var routes = [
{
path: '/',
url: './index.html',
name: 'home',
},
{
path: '/log-call/',
url: './pages/log-call.html',
name: 'log-call',
},
{
path: '/activity-overview/',
url: './pages/activity-overview.html',
name: 'activity-overview',
},
{
path: '/activity-logged/',
url: './pages/activity-logged.html',
name: 'activity-logged',
},
{
path: '/activity-on-site/',
url: './pages/activity-on-site.html',
name: 'activity-on-site',
},
{
path: '/activity-completed/',
url: './pages/activity-completed.html',
name: 'activity-completed',
},
{
path: '/messages/',
url: './pages/messages.html',
name: 'messages',
},
{
path: '/popup-log-call/',
popup: {
content: `
<div id="popup-log-call" class="popup popup-tablet-fullscreen">
<div class="view">
<div class="page">
<div class="third title-box title-box">
<a href="#" class="link popup-close back-arrow"></a>
<span class="pg-title"></span>
</div>
<div class="two-third"></div>
</div>
</div>
</div>`
}
},
{
path: '/popup-call-detail/',
popup: {
content: `
<div id="popup-call-detail" class="popup popup-tablet-fullscreen">
<div class="view">
<div class="page">
<div class="third title-box">
<a href="#" class="link popup-close back-arrow"></a>
<span class="pg-title"></span>
</div>
<div class="two-third"></div>
</div>
</div>
</div>`
}
},
{
path: '/popup-filter/',
popup: {
content: `
<div id="popup-filter" class="popup popup-tablet-fullscreen">
<div class="view">
<div class="page">
<div class="third title-box filter-title-box">
<a href="#" class="link popup-close back-arrow"></a>
<span class="pg-title">
<span class="title-icon">Filter</span>
<span class="sub-title">(Tick as many boxes as relevant and search)</span>
</span>
</div>
<div class="two-third"></div>
</div>
</div>
</div>`
}
},
]