Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jul 8, 2024
1 parent 2cdcd15 commit 6e5d8f0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ public async Task<ActionResult> SocialSignInCallback(string? returnUrl = null, i
await Request.HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); // We'll handle sign-in with the following redirects, so no external identity cookie is needed.
}

if (localHttpPort is null) return LocalRedirect($"~/{url}");

return Redirect(new Uri(new Uri($"http://localhost:{localHttpPort}/"), url).ToString());
if (localHttpPort is not null) return Redirect(new Uri(new Uri($"http://localhost:{localHttpPort}/"), url).ToString());
if (string.IsNullOrEmpty(AppSettings.WebClientUrl) is false) return Redirect(new Uri(new Uri(AppSettings.WebClientUrl), url).ToString());
return LocalRedirect($"~/{url}");
}

[HttpGet]
Expand Down

0 comments on commit 6e5d8f0

Please sign in to comment.