# Bug OP-6188 - WorkPackage linked in comment text cannot be opened 

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-6188

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 10.0.0 |
| Observed in versions |  |
| Sprint | 10.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: community

**Steps to reproduce:**

1.  Have two work packages in different projects
2.  Link from one work package to the other by the `#:id`  syntax
3.  Save
4.  Attempt to open the linked work package by following the generated link

e.g. [https://community.openproject.com/projects/openproject/work\_packages/30903/activity#activity-5](https://community.openproject.com/projects/openproject/work_packages/30903/activity#activity-5?query_id=1645)

### **Actual Behavior**

*   The link cannot be followed as the element is constantly redrawn (this should get fixed by [https://github.com/opf/openproject/pull/7635)](https://github.com/opf/openproject/pull/7635)
*   The link attempts to open the work package in the current project, where it is not found. This happens although the link displayed in the browser is project agnostic
*   No 404 error message is shown (would be a worthwhile fix in itself).

### **Expected Behavior**

*   Opening the link in the current page is possible
*   The link should lead to the correct url.
