diff --git a/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx b/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx
index 3b2a9af9..fcd8b50d 100644
--- a/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx
+++ b/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx
@@ -13,7 +13,7 @@ type OwnProps = {
const explodeCrumb = (crumb: HotCrumbItem) => {
const url: string = crumb[1] || '';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
- const [_unused, processModelId, link] = url.split(':');
+ const [endingUrlType, processModelId, link] = url.split(':');
const processModelIdSegments = splitProcessModelId(processModelId);
const paths: string[] = [];
const lastPathItem = processModelIdSegments.pop();
@@ -29,7 +29,12 @@ const explodeCrumb = (crumb: HotCrumbItem) => {
}
);
if (link === 'link') {
- const lastUrl = `/admin/process-models/${paths.join(':')}:${lastPathItem}`;
+ if (lastPathItem !== undefined) {
+ paths.push(lastPathItem);
+ }
+ const lastUrl = `/admin/${endingUrlType.replace('_', '-')}s/${paths.join(
+ ':'
+ )}`;
breadcrumbItems.push(