I have a route for an API in an Express app that looks like this:
app.get(\'/:username/:bookmark/\', function(req, res) {
// do stuff
})
As
solution source: https://github.com/mongo-express/mongo-express/pull/205
I try and it work, just add "/" before the link, example:
you are in localhost:8080/courses/
and your href is: href="style/style.css"
you will lead to localhost:8080/courses/style/style.css.
solution is add"/" before, example: href="/style/style.css"
it will start from root " localhost:8080/style/style.css"