Skip to content

Commit

Permalink
Merge pull request #3714 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix site Hybrid behavior
  • Loading branch information
sbwalker authored Jan 31, 2024
2 parents 4575996 + 9776271 commit cef56cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Oqtane.Client/UI/SiteRouter.razor
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@

if (site != null)
{
if (Runtime == "Hybrid" && !site.Hybrid)
{
_error = "Hybrid Integration Is Not Enabled For This Site";
return;
}

if (PageState == null || refresh || PageState.Page.Path != route.PagePath)
{
page = site.Pages.FirstOrDefault(item => item.Path.Equals(route.PagePath, StringComparison.OrdinalIgnoreCase));
Expand Down
2 changes: 1 addition & 1 deletion Oqtane.Server/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}

var site = SiteRepository.GetSite(alias.SiteId);
if (site != null && (!site.IsDeleted || url.Contains("admin/site")) && !site.Hybrid)
if (site != null && (!site.IsDeleted || url.Contains("admin/site")))
{
_renderMode = site.RenderMode;
_prerender = site.Prerender;
Expand Down

0 comments on commit cef56cb

Please sign in to comment.