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:
authored and GitHub committed 2024-07-01 22:18:47 +00:00
1 parent e9d828639a
commit a6a60969df
1 file changed
+6 -1
+6 -1
View File
@@ -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 });