diff --git a/framework/yii/helpers/base/Html.php b/framework/yii/helpers/base/Html.php
index ad83eed..42f0b14 100644
--- a/framework/yii/helpers/base/Html.php
+++ b/framework/yii/helpers/base/Html.php
@@ -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;