diff --git a/src/shared/containers/tc-communities/tco20/Header.jsx b/src/shared/containers/tc-communities/tco20/Header.jsx index 57057f0e8d..af3a13a180 100644 --- a/src/shared/containers/tc-communities/tco20/Header.jsx +++ b/src/shared/containers/tc-communities/tco20/Header.jsx @@ -25,8 +25,8 @@ function TCO20Header(props) { ) : ( - LOGIN - SIGN UP + LOGIN + SIGN UP ) } diff --git a/src/shared/utils/url.js b/src/shared/utils/url.js index 6245ff2779..495de94486 100644 --- a/src/shared/utils/url.js +++ b/src/shared/utils/url.js @@ -14,7 +14,7 @@ import { BUCKETS } from 'utils/challenge-listing/buckets'; */ export function getCurrentUrl() { if (isomorphy.isServerSide()) return null; - const url = window.location.href; + const url = window.location.origin + window.location.pathname; if (typeof url === 'string' && url.startsWith('http')) { return url;