|
@@ -149,7 +149,9 @@ class Router
|
|
|
'page' !== $name
|
|
|
|| 1 !== $args[$name]
|
|
|
) {
|
|
|
- $data['{' . $name . '}'] = \rawurlencode(\str_replace($this->subSearch, $this->subRepl, (string) $args[$name]));
|
|
|
+ $data['{' . $name . '}'] = \is_integer($args[$name])
|
|
|
+ ? (string) $args[$name]
|
|
|
+ : \rawurlencode(\str_replace($this->subSearch, $this->subRepl, (string) $args[$name]));
|
|
|
|
|
|
continue;
|
|
|
}
|