# Bug NEX-285 - Work package link preview: Not all routes are supported

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-285

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | Nextcloud Integration 2.4.x |
| Observed in versions | 13.0.0 |
| Bug found in version (deprecated) | 13.0.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

The work package link preview, that is available since app version 2.4, that shows a custom preview card in Nextcloud Talk for work package URLs, does not support all valid routes to work packages.

The pattern that currently works is the one built by the Nextcloud Smart Picker:

`<storage-host>/projects/<project-identifier>/work_packages/<work-package-id>*`

## **The following pattern do not work but should work, too:**

**Shortcut URL (most important of all here):**

`<storage-host>/wp/<work-package-id>`

**Work packages module in project:**

`<storage-host>/projects/<project-identifier>/work_packages/details/<work-package-id>*`

**Global work packages module (without project):**

It seems that long URLs are not supported in general. However, they are still valid in OpenProject.

https://qa.openproject-stage.com/work\_packages/details/645/overview?query\_props=%7B%22c%22%3A%5B%22id%22%2C%22subject%22%2C%22type%22%2C%22status%22%2C%22priority%22%2C%22assignee%22%2C%22project%22%5D%2C%22hi%22%3Atrue%2C%22g%22%3A%22%22%2C%22is%22%3Atrue%2C%22tv%22%3Afalse%2C%22hla%22%3A%5B%22status%22%2C%22priority%22%2C%22dueDate%22%5D%2C%22t%22%3A%22id%3Aasc%22%2C%22f%22%3A%5B%7B%22n%22%3A%22status%22%2C%22o%22%3A%22o%22%2C%22v%22%3A%5B%5D%7D%2C%7B%22n%22%3A%22search%22%2C%22o%22%3A%22\*\*%22%2C%22v%22%3A%5B%22schein%22%5D%7D%5D%2C%22ts%22%3A%22PT0S%22%2C%22pp%22%3A100%2C%22pa%22%3A1%7D

**Boards module**

[https://qa.openproject-stage.com/projects/wielands-playground/boards/290/details/117/overview](https://qa.openproject-stage.com/projects/wielands-playground/boards/290/details/117/overview)

**Calendar module**  
[https://qa.openproject-stage.com/projects/wielands-playground/calendars/new/details/645/overview?cdate=2023-08-01&amp;cview=dayGridMonth](https://qa.openproject-stage.com/projects/wielands-playground/calendars/new/details/645/overview?cdate=2023-08-01&cview=dayGridMonth)

[https://qa.openproject-stage.com/projects/wielands-playground/calendars/519/details/645/overview?cdate=2023-08-01&amp;cview=dayGridMonth](https://qa.openproject-stage.com/projects/wielands-playground/calendars/519/details/645/overview?cdate=2023-08-01&cview=dayGridMonth)

**BIM module**  
[https://wieland.openproject.com/projects/blabla/bcf/details/264/overview?query\_props=%7B%22c%22%3A%5B%22id%22%2C%22subject%22%2C%22bcfThumbnail%22%2C%22type%22%2C%22status%22%2C%22assignee%22%2C%22updatedAt%22%5D%2C%22hi%22%3Afalse%2C%22g%22%3A%22%22%2C%22is%22%3Atrue%2C%22tv%22%3Afalse%2C%22t%22%3A%22id%3Adesc%22%2C%22f%22%3A%5B%7B%22n%22%3A%22status%22%2C%22o%22%3A%22o%22%2C%22v%22%3A%5B%5D%7D%5D%2C%22pp%22%3A20%2C%22pa%22%3A1%7D&amp;models=%5B35%5D](https://wieland.openproject.com/projects/blabla/bcf/details/264/overview?query_props=%7B%22c%22%3A%5B%22id%22%2C%22subject%22%2C%22bcfThumbnail%22%2C%22type%22%2C%22status%22%2C%22assignee%22%2C%22updatedAt%22%5D%2C%22hi%22%3Afalse%2C%22g%22%3A%22%22%2C%22is%22%3Atrue%2C%22tv%22%3Afalse%2C%22t%22%3A%22id%3Adesc%22%2C%22f%22%3A%5B%7B%22n%22%3A%22status%22%2C%22o%22%3A%22o%22%2C%22v%22%3A%5B%5D%7D%5D%2C%22pp%22%3A20%2C%22pa%22%3A1%7D&models=%5B35%5D)

**Notification center**

[https://community.openproject.org/notifications/details/49397/activity](https://community.openproject.org/notifications/details/49397/activity)

**Team planner**

[https://community.openproject.org/projects/openproject/team\_planners/3157/details/47693/overview?cdate=2023-08-14&amp;cview=resourceTimelineWorkWeek](https://community.openproject.org/projects/openproject/team_planners/3157/details/47693/overview?cdate=2023-08-14&cview=resourceTimelineWorkWeek)

<mention class="mention" data-id="74805" data-type="user" data-text="@Swikriti Tripathi">@Swikriti Tripathi</mention> Here is a rough sketch of the basic patterns that I see from above:

Shortcut that redirects:

/wp/&lt;wp-id&gt;

Optional project identifier (global vs. in project):

(?:/projects/&lt;project-identifier&gt;)/&lt;module-name-pattern&gt;/.....

Module name pattern and details/no-details:

/projects/&lt;project-identifier&gt;/(work\_packages|bcf|team\_planner|calendar|boards)/(?:details/)&lt;work-package-id&gt;(/\*)
