Search result links to attachments in other spaces are incorrect

Description

Steps to reproduce:

  1. Search for attachments in other spaces

  2. Click result

Expected result:
Get to the correct attachment

Actual result:
The link contains the space, where the search started, not the target space.

Environment

None

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

Participants

None

Deployment

None

Time tracking

4h

Components

Sprint

None

Fix versions

Configure