Skip to content

Commit 862c044

Browse files
Updated footer Join Community link to new Auth0
1 parent c853a0c commit 862c044

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

__tests__/shared/components/__snapshots__/TopcoderFooter.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ exports[`Matches shallow shapshot 1`] = `
316316
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
317317
>
318318
<a
319-
href="https://accounts.topcoder.com/member/registration?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion"
319+
href="https://accounts-auth0.topcoder-dev.com?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion&retUrl="
320320
>
321321
Join Community
322322
</a>

src/shared/components/TopcoderFooter/index.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import moment from 'moment';
22
import PT from 'prop-types';
33
import React from 'react';
44

5-
import { config } from 'topcoder-react-utils';
5+
import { config, isomorphy } from 'topcoder-react-utils';
66

77
import FacebookIcon from './icons/icon-fb.svg';
88
import YouTubeIcon from './icons/icon-youtube.svg';
@@ -33,6 +33,8 @@ Link.propTypes = {
3333

3434
export default function TopcoderFooter() {
3535
const base = config.URL.BASE;
36+
const auth = config.URL.AUTH;
37+
const retUrl = isomorphy.isClientSide() ? encodeURIComponent(window.location.href) : '';
3638
const currentYear = moment().year();
3739
return (
3840
<div styleName="footer" role="contentinfo">
@@ -90,7 +92,7 @@ export default function TopcoderFooter() {
9092
<ul styleName="navi-col-links">
9193
<Link to={`${base}/community/admins`}>Admins</Link>
9294
<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>
9496
<Link to={`${base}/community/learn`}>About Community</Link>
9597
<Link to={`${base}/community/changelog`}>Changelog</Link>
9698
<Link to={`${base}/contact-us/`}>Talk to Sales</Link>

0 commit comments

Comments
 (0)