fix #4073 - OIDC/OAuth2 flow with static rendering
This commit is contained in:
@ -123,6 +123,8 @@
|
||||
if (querystring.ContainsKey("reload"))
|
||||
{
|
||||
if (querystring.ContainsKey("reload") && querystring["reload"] == "post")
|
||||
{
|
||||
if (PageState.RenderMode == RenderModes.Interactive)
|
||||
{
|
||||
// post back so that the cookies are set correctly - required on any change to the principal
|
||||
var interop = new Interop(JSRuntime);
|
||||
@ -132,6 +134,12 @@
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
NavigationManager.NavigateTo(_absoluteUri.Replace("?reload=post", "").Replace("&reload=post", ""), true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
NavigationManager.NavigateTo(_absoluteUri.Replace("?reload", "").Replace("&reload", ""), true);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user