VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: hazer26 on July 07, 2012, 23:35:09 PM

Title: jquery.noConflict.js and .ui.autocomplete being called without relative links
Post by: hazer26 on July 07, 2012, 23:35:09 PM
The following lines of code can be found in the header information of every Virtuemart page using Firebug.

<script type="text/javascript" src="http://websitename.net/components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js">
<script type="text/javascript" src="http://websitename.net/components/com_virtuemart/assets/js/jquery.noConflict.js">

When using SSL, these scripts are called without a relative link as they appear to be hard coded with http:// - this causes that anoying IE message "Do you want to view only the web page content that was delivered securely"

Does anyone know what files call those scripts? I'd like to modify them to use relative links.

Thanks!
Hayes

Joomla 2.5.4
Virtuemart 2.0.6
Title: Re: jquery.noConflict.js and .ui.autocomplete being called without relative links
Post by: hazer26 on July 08, 2012, 01:02:21 AM
Nevermind I found it.  In this file:

/administrator/components/com_virtuemart/helpers/config.php

Change these lines from base to use root:

from:
      $document->addScript(JURI::base().'components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js');
      $document->addScript(JURI::base().'components/com_virtuemart/assets/js/jquery.noConflict.js');

to:

      $document->addScript(JURI::root(true).'components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js');
      $document->addScript(JURI::root(true).'components/com_virtuemart/assets/js/jquery.noConflict.js');

This solved the SSL IE issue where I was receiving a message about non secure content.

thanks,
Hayes