File tree 2 files changed +12
-2
lines changed
geonode_mapstore_client/client
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,16 @@ const BrandNavbar = forwardRef(({
18
18
inline
19
19
} , ref ) => {
20
20
21
+
22
+ const navItemsHrefPath = navItems . map ( ( item ) => {
23
+ const hrefPath = ( item ?. href ?. slice ( - 1 ) === '=' )
24
+ ? item . href + location . pathname + location . hash
25
+ : item . href ;
26
+ return {
27
+ ...item ,
28
+ href : hrefPath
29
+ } ;
30
+ } ) ;
21
31
const centerNode = useRef ( ) ;
22
32
const centerWidth = centerNode . current
23
33
? centerNode . current . getBoundingClientRect ( ) . width
@@ -51,7 +61,7 @@ const BrandNavbar = forwardRef(({
51
61
{ centerWidth >= centerMinWidth && children }
52
62
</ div > }
53
63
< Menu
54
- items = { [ ...navItems ] . reverse ( ) }
64
+ items = { [ ...navItemsHrefPath ] . reverse ( ) }
55
65
containerClass = { `gn-brand-navbar-right-side` }
56
66
childrenClass = { `gn-user-dropdown` }
57
67
alignRight
Original file line number Diff line number Diff line change 389
389
{
390
390
"labelId" : " gnhome.signIn" ,
391
391
"type" : " link" ,
392
- "href" : " /account/login/?next=/ " ,
392
+ "href" : " /account/login/?next=" ,
393
393
"authenticated" : false
394
394
},
395
395
{
You can’t perform that action at this time.
0 commit comments