diff --git a/website/client/components/auth/registerLoginReset.vue b/website/client/components/auth/registerLoginReset.vue index 12a9dad124..1016bf07ce 100644 --- a/website/client/components/auth/registerLoginReset.vue +++ b/website/client/components/auth/registerLoginReset.vue @@ -433,12 +433,10 @@ export default { await hello(network).logout(); } catch (e) {} // eslint-disable-line - const url = window.location.href; - let auth = await hello(network).login({ scope: 'email', // explicitly pass the redirect url or it might redirect to /home - redirect_uri: url, // eslint-disable-line camelcase + redirect_uri: '', // eslint-disable-line camelcase }); await this.$store.dispatch('auth:socialAuth', { diff --git a/website/client/components/static/home.vue b/website/client/components/static/home.vue index 6a2903df49..3dd2bc4e85 100644 --- a/website/client/components/static/home.vue +++ b/website/client/components/static/home.vue @@ -663,13 +663,10 @@ await hello(network).logout(); } catch (e) {} // eslint-disable-line - - const url = window.location.href; - - let auth = await hello(network).login({ + const auth = await hello(network).login({ scope: 'email', // explicitly pass the redirect url or it might redirect to /home - redirect_uri: url, // eslint-disable-line camelcase + redirect_uri: '', // eslint-disable-line camelcase }); await this.$store.dispatch('auth:socialAuth', {