I recently started using this library for my page navigation. However, navigating between pages within a single HTML file is new to me, and I'm unsure about how to handle the history aspect.
The traditional method of using <a> name
and href
doesn't seem to work in this scenario because it stores data for page transition rather than the anchor itself.
Here are the challenges I'm facing: A) Keeping the current page active even after a refresh (as it always resets to the first page) B) Maintaining a navigation history to enable smooth back button functionality after transitioning between pages
If anyone has suggestions or basic examples to share, I would greatly appreciate it. Thank you!