matrix-highlight
matrix-highlight copied to clipboard
Ignore http/https and anchor differences in URLs
Otherwise, sending someone a link to a sub-section of a page can make them unable to see the highlights.
Is there anything that needs to be done to account for sites that use hash-routing?
I was wondering the same thing. Even something like matrix.to for instance. I am not sure how to reconcile the two approaches, to be honest.
The only thing I can think of is to make it user-configurable, probably with an "ignore anchor differences" default - maybe storing whether this site uses hash-routing in room-state somehow?
That sounds like a good way of doing it - I wonder where this would be stored, though. Account data? Some kind of matrix highlight space or room? Seems like the latter approach is cleaner.
It does seem like this data should be shared between clients, so yeah, I'd say in the state of whatever matrix-entity is representing the annotation target.