Skip to content

Commit

Permalink
Merge pull request #2308 from Gaganbird/#2305-show-after-registration…
Browse files Browse the repository at this point in the history
…-issue

Fixed: Redirect to registration page instead login after updating pro…
  • Loading branch information
ashishpachauriap authored Feb 22, 2023
2 parents a67c509 + 8a04c9a commit 25a5413
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public class LoginManager
public static string GetRedirectUrl(bool checkSettings = true)
{
string redirectUrl = "";
int redirectAfterLogin = PortalSettings.Current.Registration.RedirectAfterLogin;
if (checkSettings && redirectAfterLogin > 0) //redirect to after login page
int redirectAfterRegistration = PortalSettings.Current.Registration.RedirectAfterRegistration;
if (checkSettings && redirectAfterRegistration > 0) //redirect to after registration page
{
redirectUrl = ServiceProvider.NavigationManager.NavigateURL(redirectAfterLogin);
redirectUrl = ServiceProvider.NavigationManager.NavigateURL(redirectAfterRegistration);
}
else
{
Expand Down

0 comments on commit 25a5413

Please sign in to comment.