navigo
navigo copied to clipboard
A simple vanilla JavaScript router.
hi, I seem to be having a problem with Navigo 8.11.1. when I make a singleton of Navigo, I seem to get an error every time I set my rootURL...
The following snippet will correctly print `before hook` followed by `route handler`: ```js router.hooks({ before: (next) => { console.log('before hook'); next(); }, }); router.on('/', () => { console.log('route handler'); });...
Hey there, I came across a bug while using version `8.11.1` when using anchor in url. Navigating to the link with anchor will add 3 entries to history API: 1....
Hi, We were using the v7 of your library since a couple of years ago now, and we decided to migrate to the new v8 one. We are experiencing an...
Some companies have Legal requirements, that certain libraries can be used only if (main) javascript file(s) contains the license information. Please include the license information into "navigo/lib/*.js" published files. Thank...
The match object returned by `router.getCurrentLocation()` does not include the `data` property on routes that are configured with parameters. I also noticed while testing this in your online playground that...
I got this error sometimes when a not found route was encountered: ``` TypeError: Cannot assign to read only property 'path' of object '#' Array.checkForNotFoundHandler .mercury/node_modules/navigo/lib/navigo.js:846 843 | queryString =...
When hash routing is enabled, on first page visit (or reload), it will return a different hashString as compared to when i normally navigate on the page through an href...
``If an error is thrown inside one of the routes Navigo crashes. Is there a way (official or unofficial) to add a "global" error handler to prevent this? See demo...