-
Notifications
You must be signed in to change notification settings - Fork 9.3k
fix: improve redirect parameter handling for success page #20764
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
base: main
Are you sure you want to change the base?
Conversation
@guptadeepak8 is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mrge reviewed 2 files and found no issues. View the review in mrge.io
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (04/18/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (04/18/25)1 label was added to this PR based on Keith Williams's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guptadeepak8 visual demo is important here - can you add , making it draft until then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mrge reviewed 2 files and found no issues. View the review in mrge.io
@@ -185,7 +194,7 @@ export const useBookingSuccessRedirect = () => { | |||
...query, | |||
...bookingExtraParams, | |||
}, | |||
searchParams: new URLSearchParams(searchParams.toString()), | |||
searchParams: filterEmbedParameter(searchParams, isEmbed), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of making it embed specific we should handle removing the param in getBookingRedirectExtraParams
and unit test that function as that function has the responidbility of building what params to send
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guptadeepak8 Thanks for the PR !! I have left a suggestion to implement it in a better way
Making it draft until then |
Summary by mrge
Improved redirect handling by removing the unused "embed" parameter before forwarding users to the success page.
What does this PR do?
Improved query parameter handling by removing the unused embed param before forwarding to success page
Mandatory Tasks (DO NOT REMOVE)