-
Notifications
You must be signed in to change notification settings - Fork 464
Closed
Description
The link to the signup form generates an incorrect URL when redirectTo has a value because it omits the query parameter name ?redirectTo=. This should be fixed to ensure valid redirection.
Affected Line
epic-stack/app/routes/_auth+/login.tsx
Line 184 in 7bb4bd7
| ? `/signup?${encodeURIComponent(redirectTo)}` |
Suggested Fix
- to={redirectTo ? `/signup?${encodeURIComponent(redirectTo)}` : '/signup'}
+ to={redirectTo ? `/signup?redirectTo=${encodeURIComponent(redirectTo)}` : '/signup'}Metadata
Metadata
Assignees
Labels
No labels