We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3aa97 commit 3020e41Copy full SHA for 3020e41
demos/bookstore/app/auth.tsx
@@ -19,11 +19,8 @@ export default {
19
login: {
20
index({ session, url }) {
21
let error = session.get('error')
22
- let returnTo = url.searchParams.get('returnTo') || routes.account.index.href()
23
-
24
- // Build the form action URL with returnTo parameter
25
let formAction = routes.auth.login.action.href(undefined, {
26
- returnTo: returnTo !== routes.account.index.href() ? returnTo : undefined,
+ returnTo: url.searchParams.get('returnTo'),
27
})
28
29
return render(
0 commit comments