DEV Community

Discussion on: How to build a Router with vanilla JavaScript

Collapse
 
mmucino1 profile image
Marco Muciño

I can't make it to work. Any route I navigate send me to a Not Found (404) page. What am I missing? Thanks.

Collapse
 
kodnificent profile image
Victor Mbamara 🇳🇬

This is because you need to setup a router from the serverside that routes all request to the server to a single page. Then take over the routing with javascript.