Skip to content

Commit c44b64d

Browse files
author
Ethan
committed
url-asset
1 parent fd71380 commit c44b64d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Url.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ public static function asset($asset = '', $absoluteUrl = false)
7777

7878
$host = '';
7979
if ($absoluteUrl) {
80-
$host = Application::$app['request']->getSchemeAndHttpHost();
80+
// $host = Application::$app['request']->getSchemeAndHttpHost();
81+
$host = self::getScheme() . '://' . $_SERVER['HTTP_HOST'];
8182
}
8283

8384
return $host . Application::$app['request']->getBasePath() . $asset;

0 commit comments

Comments
 (0)