Skip to content

Search highlighting breaks links #17011

@fabianunterstell

Description

@fabianunterstell

search+link+reply_error

search+link+reply_error2

Description

Search highlighting breaks links in reply messages

Steps to reproduce

  1. Send a message with a link for example: https://github.com/vector-im/element-web.
  2. Reply anything to the link message.
  3. Search for the message with the link for example with the keyword web.
  4. Click the link.
  5. The opened link does not include the part web highlighted by the search: https://github.com/vector-im/element- and is broken.
  • I found this bug only in reply messages but did not do an extensive search. It might happen elsewhere too.

Version information

  • Platform: web (in-browser) or desktop?
    Windows 10 desktop

  • For the desktop app:
    Element version: 1.7.25
    olm version: 3.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Timeline-SearchHacktoberfestIssues which are suitable for Hacktoberfest PRs: https://hacktoberfest.digitalocean.com/Help WantedExtra attention is neededS-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