In SPA, using a navigation framework like Sammy.js, how can I use a page called anchors to navigate pages?
eg. Let's say I have a route like localhost/myapp/#/somerecord/1 , where the application loads somerecord with id = 1.
However, somerecord is really complex and long. I want to be able to jump to a specific section using a named anchor.
Let's say an article element is defined as <article id=section-d> ... </article> , and I just refer to <a href=#section-d>Section D</a> , how it works technically, but the URL The address reads as localhost/myapp/#section-d , this breaks the navigation stack. Pressing the back button takes me back to localhost/myapp/#/somerecord/1 and does not jump back.
The preferred action would be to either return to the top or previous page. Any ideas on how to do this?
source share