jsakamoto / Toolbelt.Blazor.HeadElement

Head element support (change the document title, "meta" elements such as OGP, and "link" elements) for Blazor apps.
https://demo-blazor-headelement.azurewebsites.net/
Mozilla Public License 2.0
159 stars 11 forks source link

CSS in the head is being called twice #7

Open EstebanAdao opened 4 years ago

EstebanAdao commented 4 years ago

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

jsakamoto commented 4 years ago

Thank you for your report.

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