Gridbox generates asset URLs with double slash // after domain

Hello,

I have found what appears to be a systematic URL-generation issue in recent Joomla / Gridbox installations.

Gridbox generates the jQuery asset URL with a double slash after the domain, for example:

https://www.schodiste.org//media/vendor/jquery/js/jquery.min.js

instead of:

https://www.schodiste.org/media/vendor/jquery/js/jquery.min.js

On some hosting environments this is automatically normalized and the file still loads correctly. On WEDOS hosting, however, requests containing a double slash in the path are blocked by their WAF security rule “Double Slash Path”, resulting in:

401 Unauthorized

and consequently:

ReferenceError: jQuery is not defined

This causes Gridbox backend functions such as the right-click context menu on the Pages screen to stop working.

I tested the same situation on another website with a recent Joomla / Gridbox installation. The URL also contains the double slash, but that server accepts it, so Gridbox works there.

I also tested an identical Akeeba backup of the affected site on another hosting provider, where Gridbox works correctly. This confirms that the application is functional, but the generated URL is not standards-safe across different server/WAF configurations.

I traced the issue in Gridbox source code to lines such as:

Uri::root().'/media/vendor/jquery/js/jquery.min.js'

Since Uri::root() already returns a URL ending with /, concatenating another path beginning with / produces //media/....

For example:

https://www.schodiste.org/
+ /media/vendor/jquery/js/jquery.min.js
= https://www.schodiste.org//media/vendor/jquery/js/jquery.min.js

A safer form would be for example:

Uri::root().'media/vendor/jquery/js/jquery.min.js'

or:

rtrim(Uri::root(), '/').'/media/vendor/jquery/js/jquery.min.js'

I found the same pattern in multiple Gridbox PHP files, so this seems to be a general issue rather than a single isolated view.

I am attaching two screenshots:

schodiste.org — the generated URL contains //media/..., WEDOS blocks it with 401 Unauthorized, and the Gridbox context menu does not work.
Another Joomla / Gridbox installation — the same //media/... URL is generated, but the hosting server accepts it and Gridbox works.

Could you please check this and correct the URL generation in Gridbox so that asset paths contain only one slash after the domain?

Joomla 6.1.2
Gridbox 2.20.2.3

Thank you
Best regards
Vrata

Replies are visible only to logged in members with an active subscription.