@@ -2,7 +2,7 @@ import moment from 'moment';
2
2
import PT from 'prop-types' ;
3
3
import React from 'react' ;
4
4
5
- import { config } from 'topcoder-react-utils' ;
5
+ import { config , isomorphy } from 'topcoder-react-utils' ;
6
6
7
7
import FacebookIcon from './icons/icon-fb.svg' ;
8
8
import YouTubeIcon from './icons/icon-youtube.svg' ;
@@ -33,6 +33,8 @@ Link.propTypes = {
33
33
34
34
export default function TopcoderFooter ( ) {
35
35
const base = config . URL . BASE ;
36
+ const auth = config . URL . AUTH ;
37
+ const retUrl = isomorphy . isClientSide ( ) ? encodeURIComponent ( window . location . href ) : '' ;
36
38
const currentYear = moment ( ) . year ( ) ;
37
39
return (
38
40
< div styleName = "footer" role = "contentinfo" >
@@ -90,7 +92,7 @@ export default function TopcoderFooter() {
90
92
< ul styleName = "navi-col-links" >
91
93
< Link to = { `${ base } /community/admins` } > Admins</ Link >
92
94
< Link to = { `${ base } /community/contact` } > Contact Us</ Link >
93
- < Link to = "https://accounts.topcoder.com/member/registration ?utm_source=community& utm_campaign = tc - footer & utm_medium = promotion " > Join Community</ Link >
95
+ < Link to = { ` ${ auth } ?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion&retUrl= ${ retUrl } ` } > Join Community</ Link >
94
96
< Link to = { `${ base } /community/learn` } > About Community</ Link >
95
97
< Link to = { `${ base } /community/changelog` } > Changelog</ Link >
96
98
< Link to = { `${ base } /contact-us/` } > Talk to Sales</ Link >
0 commit comments