I have a URL that includes a URLEncoded serialized java object id as the last component of the URL. I’m not passing this as a URL parameter, its part of the actual URL. I’m trying to navigate to this URL using the javascript below…
location.href = ‘/Majalin/Admin/eai@oracle_cyberavenue_com_au/MsssMasterRules/%AC%ED%00%05t%00%0CG-POLECONC++t%00%04INS+t%00%02SHt%00%05M0095t%00%05M0005t%00%05M0004sr%00%13java.lang.Character4%8BG%D9k%1A%26x%02%00%01C%00%05valuexp%000’;
This works in all browsers except for IE7, which gives me the ‘invalid procedure or argument’ error.
The problem has something to do with the last section of the URL (ie. the %AC%ED%00%05t%00%0CG-POLECONC++t%00%04INS+t%00%02SHt%00%05M0095t%00%05M0005t%00%05M0004sr%00%13java.lang.Character4%8BG%D9k%1A%26x%02%00%01C%00%05valuexp%000 part ). If I remove this, it works in IE7.
So this will work for me…
location.href = ‘/Majalin/Admin/eai@oracle_cyberavenue_com_au/MsssMasterRules’;
My question is, why does IE7 behave differently from all other browsers and have a problem navigating to the URL when the last component contains URL encoded characters? I’m after a reason apart from IE being rubbish in general.