From 9d77d6ed6d02bdd1aef670b96abb94a3fb05f70c Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 23 Feb 2022 10:58:52 +0100 Subject: [PATCH] handle app url in twig routing filters --- core/Twig/Extension/RoutingExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Twig/Extension/RoutingExtension.php b/core/Twig/Extension/RoutingExtension.php index 287ea93..683153c 100644 --- a/core/Twig/Extension/RoutingExtension.php +++ b/core/Twig/Extension/RoutingExtension.php @@ -62,7 +62,7 @@ class RoutingExtension extends AbstractExtension public function getNodePath(Node $node, array $parameters = [], bool $relative = false): ?string { - if ($node->hasExternalUrl()) { + if ($node->hasExternalUrl() || $node->hasAppUrl()) { return $node->getUrl(); } @@ -75,7 +75,7 @@ class RoutingExtension extends AbstractExtension public function getNodeUrl(Node $node, array $parameters = [], bool $schemeRelative = false): ?string { - if ($node->hasExternalUrl()) { + if ($node->hasExternalUrl() || $node->hasAppUrl()) { return $node->getUrl(); }