Loader functions can now request a redirect to an entirely different page instead by setting req.redirect to the URL in question. This is not a function, you just set it to the desired URL. The redirect is processed after all loader functions have completed and the page would otherwise be rendered.