Skip to content

Commit 633bd49

Browse files
adityathebemoshloop
authored andcommitted
fix: Clerk redirect URL
1 parent 247ae2b commit 633bd49

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/components/Authentication/Clerk/ClerkLogin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function ClerkLogin() {
1111
path="/login"
1212
routing="path"
1313
signUpUrl="/registration"
14-
forceRedirectUrl={returnTo ? `/?return_to=${returnTo}` : undefined}
14+
forceRedirectUrl={returnTo || undefined}
1515
/>
1616
);
1717
}

src/components/Authentication/Clerk/ClerkRegistration.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ export default function ClerkRegistration() {
1414
path="/registration"
1515
routing="path"
1616
signInUrl="/login"
17-
signInForceRedirectUrl={
18-
returnTo ? `/?return_to=${returnTo}` : undefined
19-
}
17+
signInForceRedirectUrl={returnTo || undefined}
2018
/>
2119
</div>
2220
</div>

0 commit comments

Comments
 (0)