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

Status

Assignee

Maximilian Hilbert (K15t)

Reporter

MartinM

Labels

Participants

None

Deployment

None

Components

Sprint

None

Fix versions

Priority

Major