From fac485158c36c7a269037f09bc52a6db953eec85 Mon Sep 17 00:00:00 2001 From: mkucmus Date: Fri, 19 Jun 2020 21:54:23 +0200 Subject: [PATCH] fix: build the right storefront URL during registration --- packages/default-theme/components/SwRegister.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/default-theme/components/SwRegister.vue b/packages/default-theme/components/SwRegister.vue index 3f80cf3f7..b193132c4 100644 --- a/packages/default-theme/components/SwRegister.vue +++ b/packages/default-theme/components/SwRegister.vue @@ -178,7 +178,7 @@ export default { email: this.email, password: this.password, salutationId: this.salutation.id, - storefrontUrl: window?.location?.origin, + storefrontUrl: window && window.location && `${window.location.protocol}//${window.location.hostname}`, billingAddress: { firstName: this.firstName, salutationId: this.salutation.id,