User tests: Successful: Unsuccessful:
Pull Request for Issue #44759 .
Fix for Web Asset Manager incorectly loading an external resource with / at the end
Add in to index.php of the site template:
$wa->registerAndUseScript('example.foobar', 'https://example.com/foobar/');
$wa->registerAndUseScript('example.esm', 'foobar/', ['importmap' => true]);
Open site page and check the source code, the header section with scripts.
The path for external script is incorrect, importmap works.
<script type="importmap">{"imports":{"example.esm":"/site-folder/foobar/"}}</script>
...
<script src="/blabla/site-folder/https://example.com/foobar/"></script>
The path for external script is correct, importmap works
<script type="importmap">{"imports":{"example.esm":"/site-folder/foobar/"}}</script>
...
<script src="https://example.com/foobar/"></script>
Please select:
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
bug
PR-5.2-dev
|
I have tested this item ✅ successfully on aef35a9
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-02-02 22:18:45 |
Closed_By | ⇒ | Hackwar |
Thank you for this contribution!
I have tested this item ✅ successfully on aef35a9
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44774.