use websiteURL to get location of signup

pull/11421/merge^2
Sean Brydon 2023-10-16 14:11:07 +01:00
parent b976fda08f
commit 469133be5e
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ export default function Login({
callbackUrl = safeCallbackUrl || "";
const LoginFooter = (
<Link href="/signup" className="text-brand-500 font-medium">
<Link href={`${WEBSITE_URL}/signup`} className="text-brand-500 font-medium">
{t("dont_have_an_account")}
</Link>
);

View File

@ -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()}`);
}}>
<ShieldCheckIcon className="mr-2 h-5 w-5" />
{t("saml_sso")}