force relative path

force relative path was created by dustin5

Posted 11 years 6 months ago #6092
Please consider this subtle change to "JURI::base" calls in mod_maximenu.php:
$document->addStyleSheet(JURI::base(true) . '/modules/mod_maximenuck/themes/' . $theme . '/css/moo_maximenuvck.css');

Simply by changing JURI::base value to "true" and adding the "/" before modules, the page renders the assets by calling a relative path instead of the full protocol via http or https.
Documentation here: docs.joomla.org/JURI/base

I see similar JURI calls in your excellent Slideshow CK as well that might benefit from this change.

Thanks,
Dusty
by dustin5
The following user(s) said Thank You: ced1870

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

Replied by ced1870 on topic force relative path

Posted 11 years 6 months ago #6124
Hi
thank you for sharing, I will test this and update if it works
CEd

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: dustin5

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

Time to create page: 0.980 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 817 guests and no members online