fix breadcrumb

This commit is contained in:
Alex Holliday committed 2025-12-18 12:41:43 -08:00
1 parent a2db7b46d6
commit 93dd49c875
1 file changed
+5 -3
@@ -65,13 +65,15 @@ export const Breadcrumb = ({
const last = index === pathnames.length - 1;
const to = `/${pathnames.slice(0, index + 1).join("/")}`;
let displayName =
t(`common.breadcrumbs.${value}`) ||
value.charAt(0).toUpperCase() + value.slice(1);
let displayName = "";
// Paths that are IDs should be detail pages
if (value.length === 24 || value.match(/^[a-f0-9-]{36}$/)) {
displayName = "Details";
} else {
displayName =
t(`common.breadcrumbs.${value}`) ||
value.charAt(0).toUpperCase() + value.slice(1);
}
return last ? (