Horje
can not find static files on multilevel routes in express js Code Example
can not find static files on multilevel routes in express js
// Make the href or the src absolute path instead of a relative path 
// by adding / at the beginning of the path

// before - relative path
<link rel="stylesheet" href="stylesheets/style.css"> 
// dependent on which route you are visiting
// on http://localhost:3000/article/create, it will search for style.css
// in the http://localhost:3000/article/stylesheets/style.css url
// which is wrong ( not the public directory )

// after - absolute path
<link rel="stylesheet" href="./stylesheets/style.css">
// independent of which route you are visiting
// will always search for your files in the public directory
// Courtesy: Sadeen Alaa - https://stackoverflow.com/users/11689488/sadeen-alaa




Javascript

Related
sequlize where clause  involving associated relationship Code Example sequlize where clause involving associated relationship Code Example
how to call api on load using hooks in react Code Example how to call api on load using hooks in react Code Example
send as form data with boundry axios Code Example send as form data with boundry axios Code Example
how to refresh a page in javascript Code Example how to refresh a page in javascript Code Example
second level relationships data not found in strapi Code Example second level relationships data not found in strapi Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7