diff --git a/bundle/Handler/Literal/CanonicalUrl.php b/bundle/Handler/Literal/CanonicalUrl.php index f5e747b..3a86261 100644 --- a/bundle/Handler/Literal/CanonicalUrl.php +++ b/bundle/Handler/Literal/CanonicalUrl.php @@ -4,6 +4,7 @@ namespace Netgen\Bundle\OpenGraphBundle\Handler\Literal; +use Ibexa\Core\MVC\Symfony\Routing\UrlAliasRouter; use Netgen\Bundle\OpenGraphBundle\Handler\HandlerInterface; use Netgen\Bundle\OpenGraphBundle\MetaTag\Item; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; @@ -21,7 +22,7 @@ public function __construct(RouterInterface $router) public function getMetaTags($tagName, array $params = []): array { $value = $this->router->generate( - 'ibexa.url.alias', + UrlAliasRouter::URL_ALIAS_ROUTE_NAME, [ 'locationId' => $this->content->contentInfo->mainLocationId, ],