found = location.href.match(/[\?\&]Redirected=Y/i); if (found) location.href = location.href.replace(found,"");