Toolbelt.Blazor.HeadElement icon indicating copy to clipboard operation
Toolbelt.Blazor.HeadElement copied to clipboard

CSS in the head is being called twice

Open EstebanAdao opened this issue 5 years ago • 1 comments
trafficstars

Hi jsakamoto!

I'm using the server side prerendering for my site Blazor Server App.

Everything works Ok until I do the following, let me explain the situation

The error happens when I update the page in the browser, then I go to the next screen and the title and description change ok but it also reloads the css again and the css route changes.

For example: the route of my css is www.siteBlazor.com/subdomain/css/main.min.css (By default in normal situation)

So, I refresh the page and it continues showing the previous route ("www.siteBlazor.com/subdomain/css/main.min.css"), but when I go to the next page everything that is on the head changes to the tags being updated but at the same time it also changes the css route to "www.siteBlazor.com/subdomain/subdomain/css/main.min.css"

This generates an error because that route does not exist.

Can you help me?

Thank You, Regards, Esteban

EstebanAdao avatar Aug 20 '20 21:08 EstebanAdao

Thank you for your report.

Could you attach a sample project that can reproduce the problem to this thread?

jsakamoto avatar Aug 20 '20 22:08 jsakamoto