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

[#55581] explain missing urls in some cases

Tobias Dillmanne6d893e8d5a5
diff --git a/frontend/src/app/shared/components/principal/principal-renderer.service.ts b/frontend/src/app/shared/components/principal/principal-renderer.service.ts
index cf59bb5dbbb..a6c14feaa48 100644
--- a/frontend/src/app/shared/components/principal/principal-renderer.service.ts
+++ b/frontend/src/app/shared/components/principal/principal-renderer.service.ts
@@ -259,6 +259,8 @@ export class PrincipalRendererService {
const hoverCard = options.hoverCard;
if (!hoverCard?.url) {
+ // In some cases, there is no URL given although a hover card is expected. For example when the principle
+ // is rendered from an angular template. We try to infer the URL here.
const url = this.userHoverCardUrl(principal);
if (hoverCard && url) {
hoverCard.url = url;