@@ -5,7 +5,8 @@ import { useSelector } from "react-redux";
5
5
import { NavLink , useNavigate } from "react-router-dom" ;
6
6
import { getDappnodeIdentityClean } from "services/dappnodeStatus/selectors" ;
7
7
import { getInstallerPath } from "pages/installer" ;
8
- import { httpsPortalPath } from "pages/system/data" ;
8
+ //import { httpsPortalPath } from "pages/system/data";
9
+ import { subPaths as systemSubPaths } from "pages/system/data"
9
10
import Alert from "react-bootstrap/esm/Alert" ;
10
11
import { MdAdd } from "react-icons/md" ;
11
12
import { MdClose } from "react-icons/md" ;
@@ -22,8 +23,9 @@ import newTabProps from "utils/newTabProps";
22
23
import { HttpsPortalMapping } from "@dappnode/types" ;
23
24
import { httpsPortalDnpName } from "params" ;
24
25
import "./https-mapping.scss" ;
25
- // import { urlJoin } from "utils/url";
26
+ import { urlJoin } from "utils/url" ;
26
27
import { ReqStatus } from "types" ;
28
+ import { rootPath as systemRootPath } from "pages/system/data" ;
27
29
28
30
export function HttpsMappings ( {
29
31
dnpName,
@@ -146,7 +148,7 @@ export function HttpsMappings({
146
148
< div className = "network-mappings" >
147
149
< p >
148
150
It recommended to only expose the pre-approved safe services listed in{ " " }
149
- < NavLink to = { httpsPortalPath } >
151
+ < NavLink to = { urlJoin ( systemRootPath , systemSubPaths . network ) } >
150
152
System / Network
151
153
</ NavLink >
152
154
. Please, only add custom mappings manually if you Fully understand the
0 commit comments