Skip to content

Commit

Permalink
Merge pull request #3447 from insiders/slug-node-translation
Browse files Browse the repository at this point in the history
[MultidomainBundle][NodeBundle] Remove _nodeTranslation
  • Loading branch information
acrobat authored Oct 13, 2024
2 parents f168658 + 84ac1e7 commit 046ec17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 4 additions & 0 deletions src/Kunstmaan/NodeBundle/Router/SlugRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 046ec17

Please sign in to comment.