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

NavigationManager.NavigateTo ignores base URI

$
0
0

I have an website developed in .net 8.0 blazor server side model.

In my app i have specified base href in app.razor file

<base href="/myapp/" />

it does append the myapp in images and css files but when it comes to c# ,

NavigationManager.NavigateTo("SomeRoute")

, it completely ignore base href value

for example

www.xyz.com/myapp is my website

Than NavigationManager.NavigateTo("Home") should result in

www.xyz.com/myapp/Home

Instead it results in

www.xyz.com/Home

Any clue why this is happening ?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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