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

Scrolling into view the activity component

Aleix Suau6d55bab85a90
diff --git a/frontend/src/app/components/wp-activity/user/user-activity.component.ts b/frontend/src/app/components/wp-activity/user/user-activity.component.ts
index f56a5ccebc9..4cc4644c4ce 100644
--- a/frontend/src/app/components/wp-activity/user/user-activity.component.ts
+++ b/frontend/src/app/components/wp-activity/user/user-activity.component.ts
@@ -133,7 +133,7 @@ export class UserActivityComponent extends WorkPackageCommentFieldHandler implem
}
public ngAfterViewInit() {
- if (window.location.hash === 'activity-' + this.activityNo) {
+ if (window.location.hash === '#activity-' + this.activityNo) {
this.elementRef.nativeElement.scrollIntoView(true);
}
}