Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

force project link on overview to open on the current page

Bruno Pagnoc74531c4164a
diff --git a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
index 0a101e8bba1..be110bba7e8 100644
--- a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
@@ -313,7 +313,7 @@ export class WorkPackageSingleViewComponent extends UntilDestroyedMixin implemen
const id = idFromLink(this.workPackage.project.href);
const projectPath = this.PathHelper.projectPath(id);
const projectName = this.workPackage.project.name as string;
- const project = `<a href="${projectPath}" class="project-context--switch-link">${projectName}<a>`;
+ const project = `<a href="${projectPath}" target="_self" class="project-context--switch-link">${projectName}</a>`;
return this.I18n.t('js.project.click_to_switch_to_project', { projectname: project });
}