From 469133be5e6ebf85ce7156ddde275bb1dfa71635 Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Mon, 16 Oct 2023 14:11:07 +0100 Subject: [PATCH] use websiteURL to get location of signup --- apps/web/pages/auth/login.tsx | 2 +- apps/web/pages/signup.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/auth/login.tsx b/apps/web/pages/auth/login.tsx index ef258adbd6..b410aeccb8 100644 --- a/apps/web/pages/auth/login.tsx +++ b/apps/web/pages/auth/login.tsx @@ -95,7 +95,7 @@ export default function Login({ callbackUrl = safeCallbackUrl || ""; const LoginFooter = ( - + {t("dont_have_an_account")} ); diff --git a/apps/web/pages/signup.tsx b/apps/web/pages/signup.tsx index c50028112d..a9eda0f821 100644 --- a/apps/web/pages/signup.tsx +++ b/apps/web/pages/signup.tsx @@ -356,7 +356,7 @@ export default function Signup({ prepopulateFormValues, token, orgSlug }: Signup // @NOTE: don't remove username query param as it's required right now for stripe payment page sp.set("username", formMethods.getValues("username")); sp.set("email", formMethods.getValues("email")); - router.push(process.env.NEXT_PUBLIC_WEBAPP_URL + "/auth/sso/saml" + "?" + sp.toString()); + router.push(`${process.env.NEXT_PUBLIC_WEBAPP_URL}/auth/sso/saml` + `?${sp.toString()}`); }}> {t("saml_sso")}