1
0
Fork 0
mirror of https://codeberg.org/MarkusThielker/next-ory.git synced 2025-07-05 22:29:17 +00:00

NORY-9: include return_to value in links

This commit is contained in:
Markus Thielker 2024-12-02 17:50:23 +01:00
parent 93acfb7cfc
commit 7300b37f73
No known key found for this signature in database
4 changed files with 22 additions and 8 deletions

View file

@ -114,7 +114,10 @@ export default function Recovery() {
{
flow ?
<Button variant="link" asChild disabled={!flow}>
<Link href="/flow/login" className="inline-flex space-x-2" passHref>
<Link
href={{ pathname: '/flow/login', query: { return_to: flow.return_to } }}
className="inline-flex space-x-2"
passHref>
Back to login
</Link>
</Button>