From 6e57f74749fae51340375de088466694df3a8f4f Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Wed, 11 Dec 2024 16:23:31 +0100 Subject: [PATCH] BUGFIX: Check if root node in dimension exists to render sitemap reference --- Resources/Private/Fusion/RobotsTxt/RobotsTxt.fusion | 1 + 1 file changed, 1 insertion(+) diff --git a/Resources/Private/Fusion/RobotsTxt/RobotsTxt.fusion b/Resources/Private/Fusion/RobotsTxt/RobotsTxt.fusion index dcc5e76..cd8828c 100644 --- a/Resources/Private/Fusion/RobotsTxt/RobotsTxt.fusion +++ b/Resources/Private/Fusion/RobotsTxt/RobotsTxt.fusion @@ -29,6 +29,7 @@ prototype(Neos.Seo:RobotsTxt) < prototype(Neos.Fusion:Component) { node = ${item.node} @process.prefix = ${'Sitemap: ' + value + props.linebreak} @if.notExcluded = ${!props.excludedDimensionPresets || Array.indexOf(props.excludedDimensionPresets, item.dimensions[props.languageDimension][0]) == -1} + @if.nodeExists = ${item.node} } } }