File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
containers/tc-communities/tco20 Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ function TCO20Header(props) {
25
25
</ React . Fragment >
26
26
) : (
27
27
< React . Fragment >
28
- < a href = { `${ config . URL . AUTH } /member?utm_source=TCO20site&retUrl=${ getCurrentUrl ( ) } ` } className = { defaultStyle . loginLink } > LOGIN</ a >
29
- < a href = { `${ config . URL . AUTH } /member/registration?utm_source=TCO20site&retUrl=${ getCurrentUrl ( ) } ` } className = { defaultStyle . signUpLink } > SIGN UP</ a >
28
+ < a href = { `${ config . URL . AUTH } /member?utm_source=TCO20site&retUrl=${ encodeURIComponent ( getCurrentUrl ( ) ) } ` } className = { defaultStyle . loginLink } > LOGIN</ a >
29
+ < a href = { `${ config . URL . AUTH } /member/registration?utm_source=TCO20site&retUrl=${ encodeURIComponent ( getCurrentUrl ( ) ) } ` } className = { defaultStyle . signUpLink } > SIGN UP</ a >
30
30
</ React . Fragment >
31
31
)
32
32
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { BUCKETS } from 'utils/challenge-listing/buckets';
14
14
*/
15
15
export function getCurrentUrl ( ) {
16
16
if ( isomorphy . isServerSide ( ) ) return null ;
17
- const url = window . location . href ;
17
+ const url = window . location . origin + window . location . pathname ;
18
18
19
19
if ( typeof url === 'string' && url . startsWith ( 'http' ) ) {
20
20
return url ;
You can’t perform that action at this time.
0 commit comments