set window.location.href to something sensible.

Some scripts depend on this to resolve absolute URLs.