You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a website that is static but I want to use the router for the blog part. (On the client/browser side)
I have a single shared JS file. I figured the following would ignore all routes that are not /blog:
constrouter=newNavigo('/blog');router.on('/:title',({ data })=>{console.log(data.title)});router.resolve();
but it still throws an error catches mydmain.whatever/admin/ for example. Any idea how to solve that?
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
I am working on a website that is static but I want to use the router for the blog part. (On the client/browser side)
I have a single shared JS file. I figured the following would ignore all routes that are not
/blog
:but it still throws an error catches mydmain.whatever/admin/ for example. Any idea how to solve that?
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: