My client's website opens external links in new windows (with target="_blank"). The links are also routed through a logger which responds with a 302 redirect to the desired page.
For example, instead of
<a href="http://stackoverflow.com">...</a>
We have
<a href="/redirect?to=http://stackoverflow.com" target="_blank">...</a>
Where /redirect?to=$url
returns an HTTP 302 to $url
.
This works fine in all browsers except IE8. Instead of opening a new window with the desired URL, IE8 opens a new window and stalls with a progress throbber and an empty address bar. If I then hit stop and reload, the desired URL loads.
Has anyone encountered this problem? Is there a known solution that preserved my client's desired behavior? That is, to open links in a new window with redirect-based logging.