Handle page redirects properly

Bug: 63179
Change-Id: I2547de1b7139266b95bb267e4b7b9ac9d8dba8dc