I am redirecting the user using window.location.href.
If I do not switch the & to & joining the URL parameters in the string, IE7 and IE8 complain (for example, the ® is turned into a registered trademark symbol).
If I just write the & as &, my modern Firefox 24.0 doesn't process the parameters because it just reads them as straight &.
How can I encode the URL in such a way that makes both browsers happy? encodeURIComponent() just breaks the whole thing for everyone.
window.location.href = '/ex/mypage.php?MemberID=' + memberID + '®=reg&rid=' + return_data + '&YearRegisteringFor=' + regYear;
window.locationinstead&in place of&, which as you can see, makes it stop working correctly in firefox 24.0. You could use browser detection, or possibly find a way to detect support for using®=, however that's far more maintenance heavy than just changing the parameter name.