22541 expand breadcrumb route-state helpers for label and dns path reuse

This commit is contained in:
2026-04-09 09:26:19 +01:00
parent 1c06ef1639
commit 59d3ed287c
5 changed files with 120 additions and 30 deletions
+5 -6
View File
@@ -45,7 +45,10 @@ import {
showRepsEnded,
getBilingualText
} from "./summary/utils/helpers";
import { resolveSearchResultsHref } from "../../lib/routing/routeState";
import {
resolveSearchResultsHref,
isDnsRoutePath
} from "../../lib/routing/routeState";
import CaseNoticeBanner from "./caseNoticeBanner";
import WatchModal from "./watchmodal";
@@ -325,11 +328,7 @@ const CaseSummary = (props) => {
const zoom = isNaN(parseFloat(siteCoords.latitude)) ? 7 : 12;
const isDnsRoute =
router.pathname === "/dns" ||
router.pathname.startsWith("/dns/") ||
router.pathname === "/myportal/dns" ||
router.pathname.startsWith("/myportal/dns/");
const isDnsRoute = isDnsRoutePath(router.pathname);
const searchHref = resolveSearchResultsHref({
query: router.query,