File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments