File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,17 @@ const TopcoderHeader = ({ auth }) => {
36
36
37
37
const regSource = window . location . pathname . split ( '/' ) [ 1 ] ;
38
38
const retUrl = encodeURIComponent ( window . location . href ) ;
39
+ const urlParams = new URLSearchParams ( window . location . href ) ;
40
+
41
+ let { type } = getSubPageConfiguration ( ) ;
42
+
43
+ // If url contains navTool url parameter. Overwrite settings with parameter.
44
+ if ( urlParams . get ( 'navTool' ) ) {
45
+ type = urlParams . get ( 'navTool' ) ;
46
+ }
47
+
39
48
tcUniNav ( 'init' , `headerNav-${ headerId } ` , {
40
- type : getSubPageConfiguration ( ) . type ,
49
+ type,
41
50
toolName : getSubPageConfiguration ( ) . toolName ,
42
51
toolRoot : getSubPageConfiguration ( ) . toolRoot ,
43
52
user : isAuthenticated ? navigationUserInfo : null ,
You can’t perform that action at this time.
0 commit comments