Skip to content

Commit fdc8a56

Browse files
committed
fix thrive url issue
1 parent b38e134 commit fdc8a56

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)