How would you do this if you were using the Visual Studio publish feature? I am asking as I am not sure this is possible. Normally this is done by editing the <base href="/"> in the _Host.cshtml but that file is compiled in production. Perhaps you can change the link in MainLayout.razor to be the full path e.g. Path="/Index".