Skip to content

Hash routes in 8.10.0 #283

@gilphilbert

Description

@gilphilbert

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions