Commit 5ae9b82e by Alexander Makarov

Merge pull request #2804 from Ryadnov/patch-1

fix User::getReturnUrl() after #2501
parents 1773ae53 aa4e6ec0
......@@ -324,9 +324,7 @@ class User extends Component
$url = Yii::$app->getSession()->get($this->returnUrlParam, $defaultUrl);
if (is_array($url)) {
if (isset($url[0])) {
$route = array_shift($url);
return Yii::$app->getUrlManager()->createUrl($route, $url);
return Yii::$app->getUrlManager()->createUrl($url);
} else {
$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