Add redirect support to pushState