When a page is requested through a viewport and contains a redirect macro, the server will respond with the HTTP status 307 (Temporary Redirect). In case this fails for some reason, Viewport will generate JavaScript code that will trigger a redirect in the browser.