Skip to content

Commit f543a9b

Browse files
committed
Merge branch 'universal_nav' of github.com:topcoder-platform/community-app into universal_nav
2 parents c3fd3a4 + cdd9d8b commit f543a9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/containers/TopcoderHeader.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ const TopcoderHeader = ({ auth }) => {
3636

3737
const regSource = window.location.pathname.split('/')[1];
3838
const retUrl = encodeURIComponent(window.location.href);
39-
const urlParams = new URLSearchParams(window.location.href);
4039

4140
let { type } = getSubPageConfiguration();
4241

4342
// If url contains navTool url parameter. Overwrite settings with parameter.
43+
const url = new URL(window.location.href);
44+
const urlParams = new URLSearchParams(url.search);
4445
if (urlParams.get('navTool')) {
4546
type = urlParams.get('navTool');
4647
}

0 commit comments

Comments
 (0)