22541 expand breadcrumb route-state helpers for label and dns path reuse
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user