We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b98df8 + 2d626f7 commit 3f360b9Copy full SHA for 3f360b9
UrlManager.php
@@ -617,8 +617,7 @@ protected function redirectToLanguage($language)
617
$params[$this->languageParam] = $language;
618
}
619
// See Yii Issues #8291 and #9161:
620
- $params = $params + $this->_request->getQueryParams();
621
- array_unshift($params, $route);
+ $params = [$route] + $params + $this->_request->getQueryParams();
622
$url = $this->createUrl($params);
623
// Required to prevent double slashes on generated URLs
624
if ($this->suffix === '/' && $route === '' && count($params) === 1) {
0 commit comments