Skip to content

Malformed Signup Redirect URL #925

@roblesdotdev

Description

@roblesdotdev

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

? `/signup?${encodeURIComponent(redirectTo)}`

Suggested Fix

- to={redirectTo ? `/signup?${encodeURIComponent(redirectTo)}` : '/signup'}
+ to={redirectTo ? `/signup?redirectTo=${encodeURIComponent(redirectTo)}` : '/signup'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions