You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
When sending a URL to a room, a link preview is generated. If the same URL is sent twice, only one preview is generated. However, if the second link is the same but with an #anchor, the link preview is generated twice for the same content (I assume Synapse will not consider the anchor at all for the actual preview generation process).
Steps to reproduce
Send a URL that produces a link preview twice to a room, but add #anchor to the end of the second URL, e.g. https://github.com/matrix-org/synapse/issues/10088 and https://github.com/matrix-org/synapse/issues/10088#foo
Witness Synapse generating two link preview for the same content
Expected behaviour: only one link preview is generated.
Version information
Homeserver: matrix.org
The text was updated successfully, but these errors were encountered:
This is a client-side problem (i.e. element web). Synapse doesn't scan messages to generate URL previews, it just fetches previews for whatever URLs the client asks for.
Synapse could optimize caching URL previews by ignoring fragments, but that doesn't really affect what users see.
Description
When sending a URL to a room, a link preview is generated. If the same URL is sent twice, only one preview is generated. However, if the second link is the same but with an
#anchor
, the link preview is generated twice for the same content (I assume Synapse will not consider the anchor at all for the actual preview generation process).Steps to reproduce
#anchor
to the end of the second URL, e.g.https://github.com/matrix-org/synapse/issues/10088
andhttps://github.com/matrix-org/synapse/issues/10088#foo
Expected behaviour: only one link preview is generated.
Version information
The text was updated successfully, but these errors were encountered: