Publish IIS - Login - Url Problem

Hi,

I tried to publish an app to local IIS with Radzen Blazor Studio and .net 8.

url ist www.domain.com/appname

After clicking login it redirects to
www.domain.com/appname/appname
instead of
www.domain.com/appname/

Thanks.

Hi @MarkusW,

Please try changing this code in AccountController.cs:

redirectUrl = string.IsNullOrEmpty(redirectUrl) ? "~/" : redirectUrl.StartsWith("/") ? $"~{redirectUrl}" : $"~/{redirectUrl}";

to this:

redirectUrl = string.IsNullOrEmpty(redirectUrl) ? "~/" : redirectUrl.StartsWith("/") ? redirectUrl : $"~/{redirectUrl}";

Then redeploy your application. This seems to be a regression from a recent fix.

1 Like

Thanks. Now it is working.