Skip to content

Commit 433664d

Browse files
committed
Fix admin redirect absolute URL bug (#190)
1 parent 82b2b75 commit 433664d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/AliasVault.Admin/Auth/Pages/Login.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
{
7575
await AuthLoggingService.LogAuthEventSuccessAsync(Input.UserName, AuthEventType.Login);
7676
Logger.LogInformation("User logged in.");
77-
NavigationService.RedirectTo(ReturnUrl ?? "/");
77+
NavigationService.RedirectTo(ReturnUrl ?? "./");
7878
}
7979
else if (result.RequiresTwoFactor)
8080
{

src/AliasVault.Admin/Main/Pages/Account/Manage/ResetAuthenticator.razor

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242

4343
GlobalNotificationService.AddSuccessMessage("Your authenticator app key has been reset, you will need to re-configure your authenticator app using the new key.");
4444

45-
NavigationService.RedirectTo(
46-
"account/manage/2fa");
45+
NavigationService.RedirectTo("account/manage/2fa");
4746
}
4847

4948
}

0 commit comments

Comments
 (0)