Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor WASM app hosted on github pages base URL does not match base URL in repo files

$
0
0

I'm hosting a blazor WASM app on github pages using this workflow, which changes the base tag in index.html to point to this repository. But none of the assets in the repository will load, they 404 since the request URL is missing the repository.

Inspecting the document at the hosted URL shows that the base tag is set to "/" instead of the repository path, even though the index.html on the gh-pages branch has it set correctly.

I've tried a number of combinations of URLs for the resources, none of which have worked and all of which have broken local development. Also been reading a lot of similar questions/answers but none of which seem to either have solutions or make any difference.

Edit: I'm aware this app wont actually work since GH pages only serves static sites, I just want to figure out how this is supposed to work for future reference.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>