fix: Redirect URL with query params (#13912)
* Fix for issue #13899 Redirect URL * Update bookingSuccessRedirect.ts * Update bookingSuccessRedirect.ts * fix: url params * chore: remove unused * chore: remove comment * Update --------- Co-authored-by: Vikas Verma <inboxvikasverma@gmail.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Co-authored-by: Udit Takkar <udit222001@gmail.com> Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
This commit is contained in:
1 file changed
+6
-1
@@ -69,7 +69,12 @@ export const useBookingSuccessRedirect = () => {
|
||||
},
|
||||
searchParams: searchParams ?? undefined,
|
||||
});
|
||||
window.parent.location.href = `${url.toString()}?${newSearchParams.toString()}`;
|
||||
|
||||
newSearchParams.forEach((value, key) => {
|
||||
url.searchParams.append(key, value);
|
||||
});
|
||||
|
||||
window.parent.location.href = url.toString();
|
||||
return;
|
||||
}
|
||||
const newSearchParams = getNewSeachParams({ query });
|
||||
|
||||
Reference in new issue
Block a user