diff --git a/src/Routing/Route.php b/src/Routing/Route.php index 4ef0f2a..78c8ca9 100644 --- a/src/Routing/Route.php +++ b/src/Routing/Route.php @@ -53,7 +53,7 @@ class Route implements IRoute $queryParams[$key] = $value; } - $query = count($queryParams) > 0 ? '?' . http_build_query($queryParams) : ''; + $query = count($queryParams) > 0 ? '?' . http_build_query($queryParams, encoding_type: PHP_QUERY_RFC3986) : ''; return '/' . implode('/', $link) . $query; }