handle app url in twig routing filters
This commit is contained in:
parent
a85aea5afb
commit
9d77d6ed6d
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue