Here's what works and what doesn't:
- I go directly to localhost:8080/asd - styles load
- I go back to some other route (and/or come back to the same /asd) - styles won't load on first time ( will load if I refresh)
Looks like it makes two GETs for one single route, the first one works, the second one doesn't.
"GET /all.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
"GET /all.min.css" Error (404): "Not found"
Been trying to fix this for a couple of hours, no success :/
P.S I'm not using routerLink, instead I use the following function:
navToAsd() {
this.router.navigate(['/asd'], { replaceUrl: true });
EDIT: tried using routerLink, still the same problem