Skip to content

Commit 95be844

Browse files
revert using root path and modified url join
1 parent 07e1ed2 commit 95be844

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/admin-ui/src/pages/packages/components/Network/HttpsMappings.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { useSelector } from "react-redux";
55
import { NavLink, useNavigate } from "react-router-dom";
66
import { getDappnodeIdentityClean } from "services/dappnodeStatus/selectors";
77
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"
910
import Alert from "react-bootstrap/esm/Alert";
1011
import { MdAdd } from "react-icons/md";
1112
import { MdClose } from "react-icons/md";
@@ -22,8 +23,9 @@ import newTabProps from "utils/newTabProps";
2223
import { HttpsPortalMapping } from "@dappnode/types";
2324
import { httpsPortalDnpName } from "params";
2425
import "./https-mapping.scss";
25-
//import { urlJoin } from "utils/url";
26+
import { urlJoin } from "utils/url";
2627
import { ReqStatus } from "types";
28+
import { rootPath as systemRootPath } from "pages/system/data";
2729

2830
export function HttpsMappings({
2931
dnpName,
@@ -146,7 +148,7 @@ export function HttpsMappings({
146148
<div className="network-mappings">
147149
<p>
148150
It recommended to only expose the pre-approved safe services listed in{" "}
149-
<NavLink to={httpsPortalPath}>
151+
<NavLink to={urlJoin(systemRootPath, systemSubPaths.network)}>
150152
System / Network
151153
</NavLink>
152154
. Please, only add custom mappings manually if you Fully understand the

0 commit comments

Comments
 (0)