I have an app where when a user wants to access /protected needs to be authenticated. If the user is not, it gets redirected to /login?r=/protected
/protected
/login?r=/protected