
03-30-2009
|
|
|
|
IE8 and Reponse.Redirect
I noticed that Response.Redirect on IE8 does not work properly. I know that
when we do a Response. Redirect in ASP the server sends the header "HTTP/1.1
302 Object moved Location:
/12.5000.09.02/Activities/ActivityInstance.aspx?multiple_postcard=1" with the
page:
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href="/12.5000.09.02/Activities/ActivityInstance.aspx?multiple_postcard=1">here</a>.</h2>
</body></html>
The Location and the href are teh same and in my case actually quite long. I
tested this:
1. Created a page witht the same html and <a> link and clicked on the link,
the page redirects correctly and displays.
2. When I use window.location in a function in a link's onlclick event
window.location ="/12.5000.09.02/Activities/ActivityInstance.aspx?..." the
redirection happens fine.
The Response.Redirect for a really long URL does not work by letting the
browser do the 302 intermediate step. I am guessing the browser which is
responsible for taking the URL and relocating to that, is not allowing this
for long URLs.
This is not consistent and IE8 needs to be fixed to allow for Location
really long and allow Redirect to happen for long Locations.
|