Skip to content

Commit

Permalink
Merge pull request #3995 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix #3993 - personalized page throwing 404 on static render mode
  • Loading branch information
sbwalker authored Mar 15, 2024
2 parents 6a80258 + 38c468a commit 2bea669
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Oqtane.Server/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@inject IConfigManager ConfigManager
@inject ITenantManager TenantManager
@inject ISiteService SiteService
@inject IPageRepository PageRepository
@inject IThemeRepository ThemeRepository
@inject ILanguageRepository LanguageRepository
@inject ILocalizationManager LocalizationManager
Expand Down Expand Up @@ -153,6 +154,11 @@
page = site.Pages.FirstOrDefault();
}
}
if (page == null)
{
// personalized pages need to be retrieved using path
page = PageRepository.GetPage(route.PagePath, site.SiteId);
}
if (page == null || page.IsDeleted)
{
HandlePageNotFound(site, page, route);
Expand Down

0 comments on commit 2bea669

Please sign in to comment.