fix User::getReturnUrl() after #2501

parent 1773ae53
...@@ -324,9 +324,7 @@ class User extends Component ...@@ -324,9 +324,7 @@ class User extends Component
$url = Yii::$app->getSession()->get($this->returnUrlParam, $defaultUrl); $url = Yii::$app->getSession()->get($this->returnUrlParam, $defaultUrl);
if (is_array($url)) { if (is_array($url)) {
if (isset($url[0])) { if (isset($url[0])) {
$route = array_shift($url); return Yii::$app->getUrlManager()->createUrl($url);
return Yii::$app->getUrlManager()->createUrl($route, $url);
} else { } else {
$url = null; $url = null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment