ory / kratos-selfservice-ui-node

Apache License 2.0
314 stars 208 forks source link

fix: users should return to previous screen on mfa required #262

Closed Benehiko closed 1 year ago

Benehiko commented 1 year ago

This PR adds the current requested page as the return_to page when redirecting to login with aal=aal2.

This is especially true for when we want to redirect back to the original page the user was navigating to. This fixes the problem where a user has logged in and navigates directly to the settings page but still needs to complete MFA. After completing the login flow the user is now stuck on the /welcome page.

Related Issue or Design Document

Checklist

Further comments