Wait for the page to be re-directed.