I put on my JQM page
<a href="/" data-role="button" data-rel="back" >Home</a>
- If this page is the first page loaded then the back button is clicked which is NOT "/"
<a href="/" data-role="button" >Home</a>
- If this page is the second page (sub page) and the first is "/" then JQM loads a second "/" as a sub page.
<a href="#home" data-role="button" >Home</a>
- Only works if #home is already loaded and the current page is not #home
So what home link do I put on a page that can be loaded by itself or as a sub page? The only way I can be sure to get to the home page is to turn off JQM loading!
<a href="/" data-role="button" data-ajax="false" >Home</a>
Why cant I have
<a href="/" data-role="button" data-rel="back-check" >Home</a>
Where JQM will try to perform a back if the back button keeps you within the current JQM page. Otherwise it will perform a full reload of the href? Or <a href="/" data-role="button" data-rel="firstpage" >Home</a>
Any ideas?