Needs review
Project:
Omniture Integration
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2009 at 12:58 UTC
Updated:
23 Jul 2012 at 19:58 UTC
Jump to comment: Most recent file
Comments
Comment #1
Race.it commentedHere is a patch to include an extra 2 variables that allow for the secure locations of the files, the module will now switch to use the secure variables if the page is requested in a https session
Comment #2
gregglesvariable_get should always have a default value, even if it is variable_get('something', '');
Otherwise, looks good.
Comment #3
Race.it commentedRe-rolled patch, to include the default values for variable_get on the new https variables.
Comment #4
gregglesI'm not so sure about this change:
The isset should prevent E_NOTICE warnings from PHP.
Comment #5
Race.it commentedthe removal of the isset was an error in the patch, ill reroll it to leave that in
Comment #6
DeeLay commentedHey,
Just found this having already come up with an alternate fix, so posting the patch for you to consider versus the existing one.
This patch doesn't have the extra form fields, but does make the assumption that the SSL location for the image and js will be the same as the non-SSL.
Comment #7
DeeLay commentedJust found out from pifantastic that you can have protocol relative URLs:
//site.com/path_to_omniture_script.js
as mentioned here:
http://blog.httpwatch.com/2010/02/10/using-protocol-relative-urls-to-swi...
I'll rework the patch to just include some informational messaging about this.
Comment #8
Race.it commentedDoes this method work across all browsers correctly as that article mentions issues with ie and css. I know we are talking about js here but would need to be checked, maybe an option flag if you want full urls still in there?
Comment #9
sperks commentedProtocol relative URLs are absolutely fine for JS files, and I can't imagine the need for two different URLs should you be using https or not. My suggestion would be to close this issue as "won't fix" and possibly add some comments to use either a locally absolute URL (/sites/js/s_code.js), or a protocol relative URL.