File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export default function TopcoderFooter() {
8
8
const footerRef = useRef ( ) ;
9
9
const footerInitialized = useRef ( false ) ;
10
10
const [ footerId , setFooterId ] = useState ( 0 ) ;
11
+ const urlParams = new URLSearchParams ( window . location . href ) ;
11
12
12
13
useEffect ( ( ) => {
13
14
uniqueId += 1 ;
@@ -20,10 +21,20 @@ export default function TopcoderFooter() {
20
21
}
21
22
22
23
footerInitialized . current = true ;
24
+ let { fullFooter } = getSubPageConfiguration ( ) ;
25
+
26
+ // If url contains navTool url parameter. Overwrite settings with parameter.
27
+ if ( urlParams . get ( 'navTool' ) ) {
28
+ if ( urlParams . get ( 'navTool' ) === 'tool' ) {
29
+ fullFooter = false ;
30
+ } else {
31
+ fullFooter = true ;
32
+ }
33
+ }
23
34
24
35
tcUniNav ( 'init' , `footerNav-${ footerId } ` , {
25
36
type : 'footer' ,
26
- fullFooter : getSubPageConfiguration ( ) . fullFooter ,
37
+ fullFooter,
27
38
} ) ;
28
39
} , [ footerId ] ) ;
29
40
You can’t perform that action at this time.
0 commit comments