Skip to content

fix(PM-1355): Retain query param in invite link #1654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 16, 2025
Merged

Conversation

hentrymartin
Copy link
Collaborator

What's in this PR?

  • Retain query param in invite link

@@ -111,7 +111,7 @@ class Routes extends React.Component {
} else {
console.error('An unexpected error occurred while getting auth token')
}
const redirectBackToUrl = encodeURIComponent(window.location.origin + this.props.location.pathname)
const redirectBackToUrl = encodeURIComponent(window.location.origin + this.props.location.pathname + this.props.location.search)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that this.props.location.search is properly sanitized or validated to prevent potential security vulnerabilities such as open redirect attacks. Consider using a library or utility function to handle URL construction safely.

@hentrymartin hentrymartin merged commit 78755ed into develop Jun 16, 2025
4 checks passed
@hentrymartin hentrymartin deleted the pm-1355 branch June 16, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant