fix IE8 bugs and restore hard-coded redirects