I have navlink defined as follows
<NavLink href="/intro"></NavLink>
In dev it works fine as the root of the site is at the same level as the blazor app. In prod I have to put the blazor site inside a folder in the default iis website. So my url becomes something like this
http://something/apps/cor/
So the <NavLink href="/intro"></NavLink>
ends up trying to go to http://something/intro
instead http://something/apps/cor/intro
I tried both /intro
and intro
and the both result in the wrong behavior. I am not getting how to make those links relative to blazor root not iis root.
Dot before the path.
./intro
is how you do it