Skip to content

Commit 3f360b9

Browse files
authored
Merge pull request #182 from alxlnk/master
Preserve numeric keys.
2 parents 3b98df8 + 2d626f7 commit 3f360b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

UrlManager.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,7 @@ protected function redirectToLanguage($language)
617617
$params[$this->languageParam] = $language;
618618
}
619619
// See Yii Issues #8291 and #9161:
620-
$params = $params + $this->_request->getQueryParams();
621-
array_unshift($params, $route);
620+
$params = [$route] + $params + $this->_request->getQueryParams();
622621
$url = $this->createUrl($params);
623622
// Required to prevent double slashes on generated URLs
624623
if ($this->suffix === '/' && $route === '' && count($params) === 1) {

0 commit comments

Comments
 (0)