Skip to content

Permalink from searching all rooms is mangled and using the wrong room ID #25115

@MadLittleMods

Description

@MadLittleMods

Steps to reproduce

  1. Open the timeline search using magnifying glass in the top-right of the chat header and search for a term
  2. Switch to All Rooms
  3. Open the context menu dropdown on a message -> Share
  4. Notice that the given matrix.to permalink is mangled and using the room ID that you opened the search from instead of room where the search result is from ❌

If you try to use the mangled permalink, you will get a confusing Failed to load timeline position error dialog since you just saw the result which exists.

Outcome

What did you expect?

Permalink works for the given message

What happened instead?

Permalink is mangled and using the current room ID instead of the room ID where the event actually exists.

Operating system

Windows 10

Browser information

Chrome Version 112.0.5615.87

URL for webapp

develop.element.io

Application version

Element version: 38dbd66-react-439759a1dae7-js-de3d5ead4212 Olm version: 3.2.12

Homeserver

matrix.org

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

A-Matrix.toA-ShareA-Timeline-SearchO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions