Skip to content
Snippets Groups Projects
Commit 24120308 authored by Deepika Guliani's avatar Deepika Guliani :two:
Browse files

Fix issue link in work item breadcrumb

Changelog: fixed
parent 6f539bee
No related branches found
No related tags found
1 merge request!120961Fix issue link in work item breadcrumb
......@@ -279,7 +279,7 @@ export default {
// Once more types are moved to have Work Items involved
// we need to handle this properly.
if (this.parentWorkItemType === WORK_ITEM_TYPE_VALUE_ISSUE) {
return `../../issues/${this.parentWorkItem?.iid}`;
return `../../-/issues/${this.parentWorkItem?.iid}`;
}
return this.parentWorkItem?.webUrl;
},
......
......@@ -437,7 +437,7 @@ describe('WorkItemDetail component', () => {
});
it('sets the parent breadcrumb URL pointing to issue page when parent type is `Issue`', () => {
expect(findParentButton().attributes().href).toBe('../../issues/5');
expect(findParentButton().attributes().href).toBe('../../-/issues/5');
});
it('sets the parent breadcrumb URL based on parent webUrl when parent type is not `Issue`', async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment