We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2db7b4 commit 93dd49cCopy full SHA for 93dd49c
client/src/components/design-elements/Breadcrumb.tsx
@@ -65,13 +65,15 @@ export const Breadcrumb = ({
65
const last = index === pathnames.length - 1;
66
const to = `/${pathnames.slice(0, index + 1).join("/")}`;
67
68
- let displayName =
69
- t(`common.breadcrumbs.${value}`) ||
70
- value.charAt(0).toUpperCase() + value.slice(1);
+ let displayName = "";
71
72
// Paths that are IDs should be detail pages
73
if (value.length === 24 || value.match(/^[a-f0-9-]{36}$/)) {
74
displayName = "Details";
+ } else {
+ displayName =
75
+ t(`common.breadcrumbs.${value}`) ||
76
+ value.charAt(0).toUpperCase() + value.slice(1);
77
}
78
79
return last ? (
0 commit comments