fix: Close.com can't be installed (#16196)
* Fix for #16183 , [CAL-3969] * Update index.tsx --------- Co-authored-by: Anik Dhabal Babu <[email protected]> Co-authored-by: Carina Wollendorfer <[email protected]>
This commit is contained in:
1 file changed
+2
-1
@@ -5,6 +5,7 @@ import { Controller, useForm } from "react-hook-form";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
import z from "zod";
|
||||
|
||||
import { WebAppURL } from "@calcom/lib/WebAppURL";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";
|
||||
import { Button, Form, showToast, TextField } from "@calcom/ui";
|
||||
@@ -66,7 +67,7 @@ export default function CloseComSetup() {
|
||||
form={form}
|
||||
handleSubmit={async (values) => {
|
||||
const { returnTo } = query;
|
||||
const url = new URL("/api/integrations/closecom/add");
|
||||
const url = new WebAppURL("/api/integrations/closecom/add");
|
||||
if (returnTo) url.searchParams.append("returnTo", `${returnTo}`);
|
||||
const res = await fetch(url.href, {
|
||||
method: "POST",
|
||||
|
||||
Reference in new issue
Block a user