x
 
Create New Page
 View Previous Changes    ( Last updated by BrianPx )

Google site search workaround

Google’s Site Search tool can, under certain setting, result in an invalid get data error due to semicolons in the resulting urls.  Derek supplied a fix involving using a placeholder and then replacing the semicolon. 

See forum thread:
http://expressionengine.com/forums/viewthread/94103/#476659

If you do run into this issue, you can can work around it by:
1.  Placing the js on your site rather than linking to it
2.  Modifying the js to replace the semicolon a la:

function v(){var c=document.location.search;if(c.length<1)return"";c.replace(/_SEMICOLON_/, ';');c=c.substring(1,c.length); 

3.  In the search form, alter the hidden field so that the semicolon is replaced by the placeholder- a la:

<input type="hidden" name="cof" value="FORID:11_SEMICOLON_NB:1" /> 

Category:EE1

Categories: