Merge pull request #986 from chlupac/returnurl
Fix - return to url during login fail when returnurl contains "/"
This commit is contained in:
commit
d953587e4b
|
@ -22,7 +22,7 @@ namespace Oqtane.Themes.Controls
|
||||||
{
|
{
|
||||||
returnurl += "/" + PageState.Page.Path;
|
returnurl += "/" + PageState.Page.Path;
|
||||||
}
|
}
|
||||||
NavigationManager.NavigateTo(NavigateUrl("login", "returnurl=" + returnurl));
|
NavigationManager.NavigateTo(NavigateUrl("login", "?returnurl=" + returnurl));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async Task LogoutUser()
|
protected async Task LogoutUser()
|
||||||
|
|
|
@ -300,7 +300,7 @@
|
||||||
if (user == null)
|
if (user == null)
|
||||||
{
|
{
|
||||||
// redirect to login page
|
// redirect to login page
|
||||||
NavigationManager.NavigateTo(Utilities.NavigateUrl(alias.Path, "login", "returnurl=" + path));
|
NavigationManager.NavigateTo(Utilities.NavigateUrl(alias.Path, "login", "?returnurl=" + path));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -565,4 +565,4 @@
|
||||||
=> RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"))
|
=> RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"))
|
||||||
? Oqtane.Shared.Runtime.WebAssembly
|
? Oqtane.Shared.Runtime.WebAssembly
|
||||||
: Oqtane.Shared.Runtime.Server;
|
: Oqtane.Shared.Runtime.Server;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user