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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#55581] use PathHelperService to construct hover card url
Tobias Dillmann4c17609aafc8
diff --git a/frontend/src/app/core/path-helper/path-helper.service.ts b/frontend/src/app/core/path-helper/path-helper.service.tsindex c6228adeb94..442dacf5e61 100644--- a/frontend/src/app/core/path-helper/path-helper.service.ts+++ b/frontend/src/app/core/path-helper/path-helper.service.ts@@ -220,6 +220,10 @@ export class PathHelperService {return `${this.usersPath()}/${id}`;}+ public userHoverCardPath(id:string|number) {+ return `${this.usersPath()}/${id}/hover_card`;+ }+public placeholderUserPath(id:string|number) {return `${this.placeholderUsersPath()}/${id}`;}diff --git a/frontend/src/app/shared/components/principal/principal-renderer.service.ts b/frontend/src/app/shared/components/principal/principal-renderer.service.tsindex 6e4d52856b3..8c7565d15ed 100644--- a/frontend/src/app/shared/components/principal/principal-renderer.service.ts+++ b/frontend/src/app/shared/components/principal/principal-renderer.service.ts@@ -193,7 +193,7 @@ export class PrincipalRendererService {private userHoverCardUrl(principal:PrincipalLike|IPrincipal):string|null {const id = principal.id || idFromLink(hrefFromPrincipal(principal));- return id ? `/users/${id}/hover_card` : null;+ return id ? this.pathHelper.userHoverCardPath(id) : null;}private renderName(