diff --git a/src/Symfony/Component/Routing/Generator/UrlGenerator.php b/src/Symfony/Component/Routing/Generator/UrlGenerator.php index a67b1f41c64e6..bc32c5c83b10d 100644 --- a/src/Symfony/Component/Routing/Generator/UrlGenerator.php +++ b/src/Symfony/Component/Routing/Generator/UrlGenerator.php @@ -98,7 +98,7 @@ protected function doGenerate($variables, $defaults, $requirements, $tokens, $pa throw new \InvalidArgumentException(sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given).', $token[3], $name, $requirements[$token[3]], $tparams[$token[3]])); } - $url = $token[1].urlencode($tparams[$token[3]]).$url; + $url = $token[1].$tparams[$token[3]].$url; $optional = false; } } elseif ('text' === $token[0]) {