Scheduling infrastructure for absolutely everyone.
fix: back url (#5414)
Nafees Nazik4b532646cbac
diff --git a/apps/web/components/Embed.tsx b/apps/web/components/Embed.tsxindex 1606c06bb48..907e2fa67bf 100644--- a/apps/web/components/Embed.tsx+++ b/apps/web/components/Embed.tsx@@ -57,10 +57,13 @@ const goto = (router: NextRouter, searchParams: Record<string, string>) => {};const removeQueryParams = (router: NextRouter, queryParams: string[]) => {+ const params = new URLSearchParams(window.location.search);+queryParams.forEach((param) => {- delete router.query[param];+ params.delete(param);});- router.push(`${router.asPath.split("?")[0]}?${router.query.toString()}`);++ router.push(`${router.asPath.split("?")[0]}?${params.toString()}`);};/**