Skip to content

Commit

Permalink
Fix issue can not load script via absolute url
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Sep 5, 2024
1 parent 44fb38c commit 99ffee3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions framework/library/astroid/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -829,11 +829,8 @@ protected function _systemUrl($url, $version = true): string
} else {
$postfix = $version ? '?v=' . Helper::frameworkVersion() : '';
}

if (Framework::isAdmin()) {
$root = Uri::root();
} else {
$root = Uri::root(true). '/';
$root = Uri::root(true). '/';
if (Framework::isSite()) {
$postfix = '';
}

Expand Down

0 comments on commit 99ffee3

Please sign in to comment.