Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 2a2a76b

Browse files
committed
Fix login page redirecting to the login page after login
1 parent d19da87 commit 2a2a76b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: src/views/login/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class Login extends Component {
8282
preferred={preferredSigninMethod === 'twitter'}
8383
after={preferredSigninMethod === 'twitter'}
8484
whitebg={preferredSigninMethod !== 'twitter'}
85-
href={`${SERVER_URL}/auth/twitter?r=${window.location.href}`}
85+
href={`${SERVER_URL}/auth/twitter?r=/home`}
8686
onClick={() => this.trackSignin('secondary cta', 'twitter')}
8787
>
8888
<Icon glyph="twitter" /> <span>{verb} with Twitter</span>
@@ -92,7 +92,7 @@ export class Login extends Component {
9292
preferred={preferredSigninMethod === 'facebook'}
9393
after={preferredSigninMethod === 'facebook'}
9494
whitebg={preferredSigninMethod !== 'facebook'}
95-
href={`${SERVER_URL}/auth/facebook?r=${window.location.href}`}
95+
href={`${SERVER_URL}/auth/facebook?r=/home`}
9696
onClick={() => this.trackSignin('secondary cta', 'facebook')}
9797
>
9898
<Icon glyph="facebook" /> <span>{verb} with Facebook</span>
@@ -102,7 +102,7 @@ export class Login extends Component {
102102
preferred={preferredSigninMethod === 'google'}
103103
after={preferredSigninMethod === 'google'}
104104
whitebg={preferredSigninMethod !== 'google'}
105-
href={`${SERVER_URL}/auth/google?r=${window.location.href}`}
105+
href={`${SERVER_URL}/auth/google?r=/home`}
106106
onClick={() => this.trackSignin('secondary cta', 'google')}
107107
>
108108
<Icon glyph="google" /> <span>{verb} with Google</span>
@@ -113,7 +113,7 @@ export class Login extends Component {
113113
<Col>
114114
<ButtonTwitter
115115
preferred
116-
href={`${SERVER_URL}/auth/twitter?r=${window.location.href}`}
116+
href={`${SERVER_URL}/auth/twitter?r=/home`}
117117
after={preferredSigninMethod === 'twitter'}
118118
onClick={() => this.trackSignin('secondary cta', 'twitter')}
119119
>
@@ -122,7 +122,7 @@ export class Login extends Component {
122122

123123
<ButtonFacebook
124124
preferred
125-
href={`${SERVER_URL}/auth/facebook?r=${window.location.href}`}
125+
href={`${SERVER_URL}/auth/facebook?r=/home`}
126126
after={preferredSigninMethod === 'facebook'}
127127
onClick={() => this.trackSignin('secondary cta', 'facebook')}
128128
>
@@ -131,7 +131,7 @@ export class Login extends Component {
131131

132132
<ButtonGoogle
133133
preferred
134-
href={`${SERVER_URL}/auth/google?r=${window.location.href}`}
134+
href={`${SERVER_URL}/auth/google?r=/home`}
135135
after={preferredSigninMethod === 'google'}
136136
onClick={() => this.trackSignin('secondary cta', 'google')}
137137
>

0 commit comments

Comments
 (0)