Skip to content

Commit b79034c

Browse files
authored
Merge pull request #6789 from nursoltan-s/issue-6788
2 parents b38e134 + fdc8a56 commit b79034c

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);
4445
if (urlParams.get('navTool')) {
4546
type = urlParams.get('navTool');
4647
}

0 commit comments

Comments
 (0)