Closed LanPodder closed 4 years ago
To fix this, there needs to be a leading slash in links:
Verwendest du die neueste Version vom Stylesheet?
2.2.0
Das haben wir vor ner Woche repariert: https://github.com/hhu-propra2/styleguide/blob/development/src/main/resources/templates/mopslayout.html#L7-L9
Used 2.0.0. using 2.2.0 works fine.
Creating a controller in spring boot, that has a default path other than root. When adding template code, it adds css relative to sub path. For instance using "localhost:8080/my/path/to/getmapping" with
looks like this:
And when looking at this pages source code:
We can see it is trying to import/link css. But when trying to open those css links, we are redirected to
localhost:8080/my/path/to/css/file.css
However those css files lie on
localhost:8080/css/file.css