I created a header (header.html) file to be imported into different pages on my site. It works when I have it only in the WebContent folder, and draws the CSS files, fonts, and
Simply use absolute path for your CSS & JS & Fonts & other assets
How?
Instead of
write
and make sure if assets
directory is in directory for which point your domain
In many cases absolute paths are better, because You don't have to think how to link to your assets from specific directory, because this path always start from root directory
Here is similar question & answer