mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
fix User::getReturnUrl() after #2501
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user