Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Close.com can't be installed (#16196)

Shivam Jadhav86f8c6c5fad8
diff --git a/packages/app-store/closecom/pages/setup/index.tsx b/packages/app-store/closecom/pages/setup/index.tsx
index d5711484bd9..be6d19bc35a 100644
--- a/packages/app-store/closecom/pages/setup/index.tsx
+++ b/packages/app-store/closecom/pages/setup/index.tsx
@@ -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",