The problem with the below code is that it appends string at the very end of the URL
if (oSession.uriContains("search?q="))
{
var str = oSession.fullUrl;
var sAppend = "+test1+test2+test3";
if (!oSession.uriContains(sAppend))
{
oSession.fullUrl = str + sAppend;
}
}
So, How can I conditionally place +test1+test2+test3
right next to search?q=
?
Thank you