force relative path

More
14 years 1 month ago #6092 by dustin5
force relative path was created by dustin5
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
The following user(s) said Thank You: ced1870

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

More
14 years 1 month ago #6124 by ced1870
Replied by ced1870 on topic force relative path
Hi
thank you for sharing, I will test this and update if it works
CEd

Joomlack Webmaster and Developer
The following user(s) said Thank You: dustin5

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

Time to create page: 0.176 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 4835 guests and no members online