@ -325,7 +325,7 @@ class UrlManager extends Component
return "$baseUrl/{$route}{$anchor}";
} else {
$url = "$baseUrl?{$this->routeParam}=$route";
$url = "$baseUrl?{$this->routeParam}=" . urlencode($route);
if (!empty($params) && ($query = http_build_query($params)) !== '') {
$url .= '&' . $query;
}