-
Notifications
You must be signed in to change notification settings - Fork 12
Description
My use case is to provide links to an update on a ticket. For example:
https://rouilj.dynamic-dns.net/demo/issue439#29VHfN7-JF:5H:8Z
links to text inside a message on a ticket. This works fine when the link is not
located on the page https://rouilj.dynamic-dns.net/demo/issue439 itself.
If you click on the link (see https://rouilj.dynamic-dns.net/demo/issue439#msg36017)
many times it does nothing.
I think the browser sees that the links is to the same page. As a result it doesn't reload the page. It looks for
an element with a matching id. Since that id doesn't exist on the page it fails.
Any idea on how to fix this? Maybe add a document listener for click. If the listener detects one of deeplink's
links it jumps down the page and selects the text.
Alternatively is there a function I can call to trigger deeplink if I pass it a fragment/url?