mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-18 00:21:18 +00:00
NORY-9: include return_to value in links
This commit is contained in:
parent
93acfb7cfc
commit
7300b37f73
4 changed files with 22 additions and 8 deletions
|
@ -144,9 +144,11 @@ export default function Login() {
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
{
|
{
|
||||||
flow ?
|
flow ?
|
||||||
<Button variant="link" asChild>
|
<Button variant="link" asChild><Link
|
||||||
<Link href="/flow/recovery" className="text-orange-600" passHref>
|
href={{ pathname: '/flow/recovery', query: { return_to: flow.return_to } }}
|
||||||
<span>Forgot your password?</span>
|
className="text-orange-600"
|
||||||
|
passHref>
|
||||||
|
Forgot your password?
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
:
|
:
|
||||||
|
@ -155,8 +157,11 @@ export default function Login() {
|
||||||
{
|
{
|
||||||
flow ?
|
flow ?
|
||||||
<Button variant="link" asChild disabled={!flow}>
|
<Button variant="link" asChild disabled={!flow}>
|
||||||
<Link href="/flow/registration" className="inline-flex space-x-2" passHref>
|
<Link
|
||||||
<span>Create an account</span>
|
href={{ pathname: '/flow/registration', query: { return_to: flow.return_to } }}
|
||||||
|
className="inline-flex space-x-2"
|
||||||
|
passHref>
|
||||||
|
Create an account
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
:
|
:
|
||||||
|
|
|
@ -114,7 +114,10 @@ export default function Recovery() {
|
||||||
{
|
{
|
||||||
flow ?
|
flow ?
|
||||||
<Button variant="link" asChild disabled={!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
|
Back to login
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -121,7 +121,10 @@ export default function Registration() {
|
||||||
{
|
{
|
||||||
flow ?
|
flow ?
|
||||||
<Button variant="link" asChild disabled={!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>
|
||||||
Log into your account
|
Log into your account
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -113,7 +113,10 @@ export default function Verification() {
|
||||||
{
|
{
|
||||||
flow ?
|
flow ?
|
||||||
<Button variant="link" asChild disabled={!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
|
Back to login
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Add table
Reference in a new issue