question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search highlighting breaks links

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonBrandnercommented, Apr 20, 2021

Side note: switching to another account to report this bug triggered this issue as well and I needed to remove the EventStore folder to be able to use the search function in the first place.

Could you open a new issue for that, please?

0reactions
t3chguycommented, Oct 21, 2022

Linkification happens after highlighting, which is backwards, affects both html & plain messages

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search results highlight breaks my read more link
I found the way to do it on this thread: How to highlight search terms without plugin and it worked wonderfully. However, it...
Read more >
A one-line solution to highlighting search matches - bitsofcode
One-line match highlighting ... Here's the solution I came up with: const term; // search query we want to highlight in results const...
Read more >
Highlighting of text does not work correctly
Highlighting of text does not work correctly. When I attempt to highlight text and hold down the mouse button at where I want...
Read more >
JQuery search in static page of links with highlighting of found ...
JQuery search in static page of links with highlighting of found word without breaking list · Try plugin such as bartaz.github.io/sandbox.js/jquery.highlight.
Read more >
How to find and fix broken links in Excel - Ablebits
This tutorial will teach you 3 easy ways to find and fix broken Excel links, plus our own one-click solution as an extra...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found