Seems like there's a simple issue here that I can't quite figure out.
In my node application, I have a layout.ejs file that includes a script tag:
For example:
<link href="css/main-theme.css" rel="stylesheet">
However, when I visit a restful route for a "blog post," such as posts/:someId
the stylesheet is now trying to locate itself at this path -> "posts/css/main-theme.css".
How can I make sure that style and script tags search for their sources using the same path regardless of the current URL route?