diff --git a/packages/dashboard/src/pages/auth/login.js b/packages/dashboard/src/pages/auth/login.js index 875200e2..25a552d4 100644 --- a/packages/dashboard/src/pages/auth/login.js +++ b/packages/dashboard/src/pages/auth/login.js @@ -36,7 +36,7 @@ export async function getServerSideProps(context) { return { redirect: { permanent: false, - destination: `${config.kratos.browser}/self-service/login/browser`, + destination: `${config.kratos.browser}/self-service/login/browser?return_to=${context.query.return_to}`, }, }; }