commit
cef56cb5f1
|
@ -220,6 +220,12 @@
|
||||||
|
|
||||||
if (site != null)
|
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)
|
if (PageState == null || refresh || PageState.Page.Path != route.PagePath)
|
||||||
{
|
{
|
||||||
page = site.Pages.FirstOrDefault(item => item.Path.Equals(route.PagePath, StringComparison.OrdinalIgnoreCase));
|
page = site.Pages.FirstOrDefault(item => item.Path.Equals(route.PagePath, StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var site = SiteRepository.GetSite(alias.SiteId);
|
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;
|
_renderMode = site.RenderMode;
|
||||||
_prerender = site.Prerender;
|
_prerender = site.Prerender;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user