I am making a Web Project using NodeJS and in which I'm linking to the stylesheet in the header file, which I've included in all of my EJS files
The location of the header file is as follows
root -> views -> partials -> header.ejs
The location of the stylesheet is as follows
root -> public -> style.css
I've used this line to link with the stylesheet in the header.ejs file
<link rel="stylesheet" href="../style.css">
Now, this stylesheet is being rendered in all pages, except for one. Path of page where the stylesheet isn't working :-
- /campgrounds/:id/edit
Other pages (where style.css is working properly) :-
- /campgrounds
- /campgrounds/new
- /campgrounds/:id
What is the reason behind this and how to solve this