From d4a0cf19f7b15b8b6fbb8704d36b78ed03d37fcc Mon Sep 17 00:00:00 2001 From: KirillVolovitskiy Date: Fri, 6 Sep 2019 13:56:04 +0300 Subject: [PATCH] check if SXA site based on item --- .../ResolveRenderingDatasource/PageRelativeDatasource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sitecore.Support.356030/XA/Foundation/LocalDatasources/Pipelines/ResolveRenderingDatasource/PageRelativeDatasource.cs b/src/Sitecore.Support.356030/XA/Foundation/LocalDatasources/Pipelines/ResolveRenderingDatasource/PageRelativeDatasource.cs index 40939f7..6011466 100644 --- a/src/Sitecore.Support.356030/XA/Foundation/LocalDatasources/Pipelines/ResolveRenderingDatasource/PageRelativeDatasource.cs +++ b/src/Sitecore.Support.356030/XA/Foundation/LocalDatasources/Pipelines/ResolveRenderingDatasource/PageRelativeDatasource.cs @@ -22,7 +22,7 @@ public void Process(ResolveRenderingDatasourceArgs args) Item contextItem = args.GetContextItem(); if (contextItem != null) { - if (!ServiceLocator.ServiceProvider.GetService().Site.IsSxaSite()) + if (!contextItem.IsSxaSite()) { return; }