fix personalization redirect

This commit is contained in:
sbwalker
2023-06-05 09:30:17 -04:00
parent cc9377b37d
commit 50cf67546b

View File

@ -230,11 +230,11 @@
{ {
if (user != null && page.IsPersonalizable) if (user != null && page.IsPersonalizable)
{ {
page = await PageService.GetPageAsync(route.PagePath + "/" + user.Username, site.SiteId); var personalized = await PageService.GetPageAsync(route.PagePath + "/" + user.Username, site.SiteId);
if (page != null) if (personalized != null)
{ {
// redirect to the personalized page // redirect to the personalized page
NavigationManager.NavigateTo(Utilities.NavigateUrl(SiteState.Alias.Path, route.PagePath + "/" + user.Username, ""), false); NavigationManager.NavigateTo(Utilities.NavigateUrl(SiteState.Alias.Path, personalized.Path, ""), false);
} }
} }
} }