|
|
@ -1364,7 +1364,7 @@ class Html |
|
|
|
return Yii::$app->getRequest()->getUrl(); |
|
|
|
return Yii::$app->getRequest()->getUrl(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$url = Yii::getAlias($url); |
|
|
|
$url = Yii::getAlias($url); |
|
|
|
if ($url[0] === '/' || strpos($url, '://')) { |
|
|
|
if ($url[0] === '/' || $url[0] === '#' || strpos($url, '://')) { |
|
|
|
return $url; |
|
|
|
return $url; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return Yii::$app->getRequest()->getBaseUrl() . '/' . $url; |
|
|
|
return Yii::$app->getRequest()->getBaseUrl() . '/' . $url; |
|
|
|