@@ -15,7 +15,7 @@ import { AuthContext } from "@mwdb-web/commons/auth";
1515import { ConfigContext } from "@mwdb-web/commons/config" ;
1616import { fromPlugin , Extendable } from "@mwdb-web/commons/extensions" ;
1717import { NavDropdown } from "@mwdb-web/commons/ui" ;
18- import { useRemote } from "@mwdb-web/commons/remotes" ;
18+ import { useRemote , useRemotePath } from "@mwdb-web/commons/remotes" ;
1919
2020import logo from "../assets/logo.png" ;
2121
@@ -116,7 +116,7 @@ export default function Navigation() {
116116 const auth = useContext ( AuthContext ) ;
117117 const config = useContext ( ConfigContext ) ;
118118 const remote = useRemote ( ) ;
119- const remotePath = remote ? `/remote/ ${ remote } ` : "" ;
119+ const remotePath = useRemotePath ( ) ;
120120 const navItems = config . config ? (
121121 < Extendable ident = "navbar" >
122122 { ! auth . isAuthenticated &&
@@ -242,7 +242,7 @@ export default function Navigation() {
242242 </ Link >
243243 </ li >
244244 < li className = "nav-item" >
245- < Link className = "nav-link" to = { `${ remotePath } / configs` } >
245+ < Link className = "nav-link" to = { `${ remotePath } configs` } >
246246 < FontAwesomeIcon
247247 className = "navbar-icon"
248248 icon = { faTable }
@@ -251,7 +251,7 @@ export default function Navigation() {
251251 </ Link >
252252 </ li >
253253 < li className = "nav-item" >
254- < Link className = "nav-link" to = { `${ remotePath } / blobs` } >
254+ < Link className = "nav-link" to = { `${ remotePath } blobs` } >
255255 < FontAwesomeIcon
256256 className = "navbar-icon"
257257 icon = { faScroll }
@@ -260,7 +260,7 @@ export default function Navigation() {
260260 </ Link >
261261 </ li >
262262 < li className = "nav-item" >
263- < Link className = "nav-link" to = { `${ remotePath } / search` } >
263+ < Link className = "nav-link" to = { `${ remotePath } search` } >
264264 Search
265265 </ Link >
266266 </ li >
0 commit comments