Skip to content

Commit 0493e61

Browse files
authored
Merge pull request #6792 from nursoltan-s/issue-6788
2 parents a38411d + e5c40fa commit 0493e61

File tree

1 file changed

+13
-1
lines changed
  • src/shared/components/TopcoderFooter

1 file changed

+13
-1
lines changed

src/shared/components/TopcoderFooter/index.jsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,21 @@ export default function TopcoderFooter() {
2121

2222
footerInitialized.current = true;
2323

24+
// If url contains navTool url parameter. Overwrite settings with parameter.
25+
let isFullFooter = false;
26+
const url = new URL(window.location.href);
27+
const urlParams = new URLSearchParams(url.search);
28+
if (urlParams.get('navTool') === 'tool') {
29+
isFullFooter = false;
30+
} else if (urlParams.get('navTool') === 'marketing') {
31+
isFullFooter = true;
32+
} else {
33+
isFullFooter = getSubPageConfiguration().fullFooter;
34+
}
35+
2436
tcUniNav('init', `footerNav-${footerId}`, {
2537
type: 'footer',
26-
fullFooter: getSubPageConfiguration().fullFooter,
38+
fullFooter: isFullFooter,
2739
});
2840
}, [footerId]);
2941

0 commit comments

Comments
 (0)