So, I stumbled into an issue with my Spring App when linking css into the html recordsdata. I put the CSS file within the right listing (/sources/static/kinds/file.css), however it’s linked solely to the top-level web site. For Instance, whereas im working in localhost/index the css is linked appropriately. Nonetheless, when i click on a button that searches the database and due to this fact modifications the URL to localhost/index/search, the css is just not linked anymore. It is value to say that if i paste the CSS into the HTML straight utilizing the tag, it really works simply wonderful within the sub-sites.
I’ve tried to vary the hierarchy of the paths in my Controllers but it surely didn’t work. Having the CSS embedded in each html file is admittedly not one of the best answer for me. Thanks upfront!