diff --git a/src/Kunstmaan/MultiDomainBundle/Router/DomainBasedLocaleRouter.php b/src/Kunstmaan/MultiDomainBundle/Router/DomainBasedLocaleRouter.php index 4a3a872192..957b6827a6 100644 --- a/src/Kunstmaan/MultiDomainBundle/Router/DomainBasedLocaleRouter.php +++ b/src/Kunstmaan/MultiDomainBundle/Router/DomainBasedLocaleRouter.php @@ -60,6 +60,10 @@ public function generate($name, $parameters = [], $referenceType = UrlGeneratorI unset($parameters['otherSite']); } + if (isset($parameters['_nodeTranslation'])) { + unset($parameters['_nodeTranslation']); + } + return $this->urlGenerator->generate($name, $parameters, $referenceType); } diff --git a/src/Kunstmaan/NodeBundle/Router/SlugRouter.php b/src/Kunstmaan/NodeBundle/Router/SlugRouter.php index 41211af5f6..a7ca579f11 100644 --- a/src/Kunstmaan/NodeBundle/Router/SlugRouter.php +++ b/src/Kunstmaan/NodeBundle/Router/SlugRouter.php @@ -125,6 +125,10 @@ public function generate($name, $parameters = [], $referenceType = UrlGenerator: $this->getContext() ); + if (isset($parameters['_nodeTranslation'])) { + unset($parameters['_nodeTranslation']); + } + return $this->urlGenerator->generate($name, $parameters, $referenceType); }