No Code Attached Yet
avatar HubITgr
HubITgr
14 Mar 2023

Steps to reproduce the issue

Add any external url without .js extention (like google maps api)

Expected result

Add external script to header as it is

Actual result

Removes http(s) and makes the url relative to joomla

System information (as much as possible)

Any system

Additional comments

avatar HubITgr HubITgr - open - 14 Mar 2023
avatar joomla-cms-bot joomla-cms-bot - change - 14 Mar 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Mar 2023
avatar joomdonation
joomdonation - comment - 14 Mar 2023

Cannot confirm. I tried:

$document->addScript('https://maps.google.com/maps/api/js?key=AAAA');

And it is rendered properly

<script src="https://maps.google.com/maps/api/js?key=AAAA"></script>

From my experience, it could cause by a plugin on your site or your site template (tries to process/optimize JS). You will need to check and figure out it yourself.

avatar HubITgr
HubITgr - comment - 14 Mar 2023

It never crossed my mind.. It happened after the latest joomla update but it seems that it is theme related. Thank you!

avatar HubITgr HubITgr - change - 14 Mar 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-03-14 13:38:20
Closed_By HubITgr
avatar HubITgr HubITgr - close - 14 Mar 2023

Add a Comment

Login with GitHub to post a comment