Merge pull request #3724 from thabaum/login-cancel-null-exception

Fixes: #3723 - Fix refresh() unnecessary conditional check for page values
This commit is contained in:
Shaun Walker
2024-02-02 09:06:08 -05:00
committed by GitHub

View File

@ -324,7 +324,7 @@
}
else // not mapped
{
if (user == null && Utilities.IsPageModuleVisible(page.EffectiveDate, page.ExpiryDate))
if (user == null)
{
// redirect to login page if user not logged in as they may need to be authenticated
NavigationManager.NavigateTo(Utilities.NavigateUrl(SiteState.Alias.Path, "login", "?returnurl=" + WebUtility.UrlEncode(route.PathAndQuery)));