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

Can I have a NavLink with a relative URL

$
0
0

I have a WebAssembly Blazor app and I want the URLs in my menu to be relative to the current path.If I navigate to /demo/ and I click on a link with an href of games, I want it to navigate to /demo/games but instead, it treats the href as being absolute and navigates to /games.

Is there any way to achieve this. I don't want to have string fields for every link in the menu so that I can prefix every one with /demo/ individually in code.


Viewing all articles
Browse latest Browse all 4845

Trending Articles



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