diff --git a/packages/login/src/app/(root)/confirm/Activation/page.tsx b/packages/login/src/app/(root)/confirm/Activation/page.tsx index 4e6759d016..84b225b94e 100644 --- a/packages/login/src/app/(root)/confirm/Activation/page.tsx +++ b/packages/login/src/app/(root)/confirm/Activation/page.tsx @@ -24,6 +24,8 @@ // content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 // International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode +import { headers } from "next/headers"; + import { FormWrapper } from "@docspace/shared/components/form-wrapper"; import { getPortalPasswordSettings, getSettings } from "@/utils/actions"; @@ -37,6 +39,9 @@ type ActivationProps = { async function Page({ searchParams }: ActivationProps) { const type = searchParams.type; + const headersList = headers(); + const hostName = headersList.get("x-forwarded-host") ?? ""; + const [settings, passwordSettings] = await Promise.all([ getSettings(), getPortalPasswordSettings(), @@ -46,7 +51,7 @@ async function Page({ searchParams }: ActivationProps) {
{settings && typeof settings !== "string" && ( <> - +