This commit is contained in:
Qiang Xue
2015-01-13 21:28:13 -05:00
parent 147abc8232
commit 4ae7eb1819

View File

@ -378,7 +378,7 @@ class BaseUrl
public static function current(array $params = [], $scheme = false)
{
$currentParams = Yii::$app->getRequest()->getQueryParams();
$currentParams[0] = Yii::$app->controller->getRoute();
$currentParams[0] = '/' . Yii::$app->controller->getRoute();
$route = ArrayHelper::merge($currentParams, $params);
return static::toRoute($route, $scheme);
}