Fix bug when a redirect is sent to a popup