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() {
21
21
22
22
footerInitialized . current = true ;
23
23
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
+
24
36
tcUniNav ( 'init' , `footerNav-${ footerId } ` , {
25
37
type : 'footer' ,
26
- fullFooter : getSubPageConfiguration ( ) . fullFooter ,
38
+ fullFooter : isFullFooter ,
27
39
} ) ;
28
40
} , [ footerId ] ) ;
29
41
You can’t perform that action at this time.
0 commit comments