Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from nlegoff/fix-routing-issue
Browse files Browse the repository at this point in the history
do not set current host for absolute url if we don't found translated…
  • Loading branch information
edouarddurieux committed Nov 29, 2018
2 parents 25fe666 + 68232f5 commit b20be51
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Routing/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ public function generate($name, $parameters = [], $referenceType = self::ABSOLUT

return $url;
} catch (RouteNotFoundException $ex) {
if (!$referenceType && $this->hostMap) {
$this->context->setHost($currentHost);
}

// fallback to default behavior
}

// use the default behavior if no localized route exists
Expand Down

0 comments on commit b20be51

Please sign in to comment.