Skip to content

Commit

Permalink
Updated parameter with LoginTabId instead of TabName
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuralidaran authored and bdukes committed Oct 15, 2020
1 parent 2ff69fb commit 66b5eda
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,13 +806,13 @@ private string GetLoginPath()
}

var tab = TabController.Instance.GetTab(this.PortalSettings.LoginTabId, this.PortalId);
return tab != null ? new Uri(this._navigationManager.NavigateURL(tab.TabName)).LocalPath : LOGIN_PATH;
return tab != null ? new Uri(this._navigationManager.NavigateURL(this.PortalSettings.LoginTabId), UriKind.RelativeOrAbsolute).LocalPath : LOGIN_PATH;
}

private bool IsRedirectingFromLoginUrl()
{
return this.Request.UrlReferrer != null &&
this.GetLoginPath().StartsWith(this.Request.UrlReferrer.LocalPath, StringComparison.InvariantCultureIgnoreCase);
this.Request.UrlReferrer.LocalPath.EndsWith(GetLoginPath(), StringComparison.InvariantCultureIgnoreCase);
}

private void AddLoginControlAttributes(AuthenticationLoginBase loginControl)
Expand Down

0 comments on commit 66b5eda

Please sign in to comment.