Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ export class UmbWorkspaceBreadcrumbElement extends UmbLitElement {

#getHref(structureItem: UmbStructureItemModel) {
if (structureItem.isFolder) return undefined;
return `section/${this.#sectionContext?.getPathname()}/workspace/${structureItem.entityType}/edit/${structureItem.unique}`;

let href = `section/${this.#sectionContext?.getPathname()}`;
if (structureItem.unique) {
href += `/workspace/${structureItem.entityType}/edit/${structureItem.unique}`;
}

return href;
}

override render() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ export class UmbWorkspaceVariantMenuBreadcrumbElement extends UmbLitElement {

#getHref(structureItem: any) {
if (structureItem.isFolder) return undefined;
const workspaceBasePath = `section/${this.#sectionContext?.getPathname()}/workspace/${structureItem.entityType}/edit`;
return `${workspaceBasePath}/${structureItem.unique}/${this._workspaceActiveVariantId?.toCultureString()}`;

let href = `section/${this.#sectionContext?.getPathname()}`;
if (structureItem.unique) {
href += `/workspace/${structureItem.entityType}/edit/${structureItem.unique}/${this._workspaceActiveVariantId?.toCultureString()}`;
}

return href;
}

override render() {
Expand Down
Loading