Under certain circumstances location.href is not defined in IE8.

It sometimes causes an infinite routing loop.