Commit 40b6b607 by Qiang Xue

Fixes #632.

parent 90ed7762
......@@ -1398,7 +1398,7 @@ class Html
return Yii::$app->getRequest()->getUrl();
} else {
$url = Yii::getAlias($url);
if ($url[0] === '/' || $url[0] === '#' || strpos($url, '://')) {
if ($url !== '' && ($url[0] === '/' || $url[0] === '#' || strpos($url, '://'))) {
return $url;
} else {
return Yii::$app->getRequest()->getBaseUrl() . '/' . $url;
......
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