Skip to content

Commit

Permalink
NGSTACK-807 ibexa alias string replaced with constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Miljenko Muha committed Dec 7, 2023
1 parent 5d5f31c commit 85e2b7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundle/Handler/Literal/CanonicalUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
],
Expand Down

0 comments on commit 85e2b7c

Please sign in to comment.