I was using 8.9.1, which worked well except I was getting double entries in my history (and navigating "back" was a little odd...) so I upgraded to 8.10.0. Now my history works well... but that's because hash routing isn't working at all!
I haven't changed anything:
<ul class="menu-list has-text-centered">
<li><a href="/" data-navigo>Playing</li>
<li><a href="/playlists" data-navigo>Playlists</li>
...
</ul>
self.router = new window.Navigo('/', { hash: true })
self.router
.on('/playlists', () => {
// do some stuff
})
It seems like Navigo isn't intercepting the routes as they're acting like normal anchors and redirecting the page. If I turn off hash-based routing it works exactly as expected.
Any suggestions?
I was using 8.9.1, which worked well except I was getting double entries in my history (and navigating "back" was a little odd...) so I upgraded to 8.10.0. Now my history works well... but that's because hash routing isn't working at all!
I haven't changed anything:
It seems like Navigo isn't intercepting the routes as they're acting like normal anchors and redirecting the page. If I turn off hash-based routing it works exactly as expected.
Any suggestions?