I am actually looking for a way to get all the URLs entered so that I can redirect the wrong URLs to a 404 page.
when I hit different url s like localhost:0000/details
, because location.href
is in index.html, this code is not executed. and I can't figure out the URL to redirect the user to the desired page.