Skip to content

Tlon media URLs with fragments are sent as links instead of image blocks #104852

Description

@VectorPeak

Summary

Tlon outbound media classification treats image URLs with #fragment suffixes as non-image URLs.

Reproduction

The Tlon media story builder currently classifies these URLs differently:

https://cdn.example/image.png          => image block
https://cdn.example/image.png?token=1  => image block
https://cdn.example/image.png#preview  => ordinary link

buildMediaStory("caption", "https://cdn.example/image.png#preview") produces a link verse instead of a block.image verse.

Impact

Users sending image URLs that include fragments, such as CDN preview anchors or version fragments, get a plain link in Tlon instead of the expected image media block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions