From fd8b323e47ad767563bcb3e6a2dd9ecd385a483e Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo <6601142+agustif@users.noreply.github.com> Date: Tue, 2 Aug 2022 18:05:09 +0200 Subject: [PATCH] fix: base_url for login link should be WEBAPP_URL not WEBSITE_URL (#3637) --- apps/web/pages/api/auth/[...nextauth].tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/api/auth/[...nextauth].tsx b/apps/web/pages/api/auth/[...nextauth].tsx index 01d216d9c8..a298e94b2f 100644 --- a/apps/web/pages/api/auth/[...nextauth].tsx +++ b/apps/web/pages/api/auth/[...nextauth].tsx @@ -12,7 +12,7 @@ import path from "path"; import checkLicense from "@calcom/features/ee/common/server/checkLicense"; import ImpersonationProvider from "@calcom/features/ee/impersonation/lib/ImpersonationProvider"; -import { WEBSITE_URL } from "@calcom/lib/constants"; +import { WEBAPP_URL, WEBSITE_URL } from "@calcom/lib/constants"; import { symmetricDecrypt } from "@calcom/lib/crypto"; import { defaultCookies } from "@calcom/lib/default-cookies"; import { serverConfig } from "@calcom/lib/serverConfig"; @@ -174,7 +174,7 @@ if (true) { to: identifier, subject: "Your sign-in link for Cal.com", html: emailTemplate({ - base_url: WEBSITE_URL, + base_url: WEBAPP_URL, signin_url: url, email: identifier, }),