Coding - missing "/" on beginning of JS links

1 year 10 months ago
betterlead
Topic Author
Coding - missing "/" on beginning of JS links #5382
Hi Mani
Can you take a look at this?
Quote my developer: I'm on looking to minify js+css.
I inform you that as always vmuikit make some trouble, because they forgot to add the slash at the beginning of JS links.
plugins/system/vmuikit_override/html_override/com_virtuemart/assets/js/vmprices.js
Should be /plugins/system/vmuikit_override/html_override/com_virtuemart/assets/js/vmprices.js
As an example,,, and the compiling fails.
And:

[2017-09-24 15:00:03] Studio 42: Eg
$document->addScript('plugins/system/vmuikit_override/html_override/com_virtuemart/assets/js/vmprices.js');
Is
$document->addScript(juri::root(true).'/plugins/system/vmuikit_override/html_override/com_virtuemart/assets/js/vmprices.js');

Cheers
/Dodo

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum

Latest News from JoomlaPro.com

VMuikit 5 is finally out!

Our next version of our popular VMuikit package is out. This time we have some quite nice new features.

Electroneum Joomla/VirtueMart plugins

JoomlaPro.com are not only web & Joomla enthusiast, we cannot stay away from checking other tech trends as well. The last few years its been hard to miss the crypto/blockchain ...

New plugin: Secure Joomla Login

We have released a new plugin that adds a extra PIN code and a reCaptcha v2 check on Joomlas login. Security is very important on all fronts of a website. One often missed one is ...

We accept PayPal, 2Checkout & Electroneum payments:

We accept PayPal payments    We accept 2checkout payments  electroneum payment


For news and updates please like :