Skip to content

Dash in URL breaks hyperlink parsing #3095

@svarlamov

Description

@svarlamov

Description

When posting an issue by cut-n-pasting a URL like https://example.com/something/my-link the URL parsing works and I get a pretty hyperlink after posting. However, this url https://sample.example.com/:i:/p/foobar/helloworld-foo?abc=123 breaks. Ie., the link is only the https://sample.example.com/:i:/p/foobar/helloworld part, whereas -foo?abc=123 just looks like normal text and when I click on the part that got recognized as a link, it directs me without the -foo?abc=123 part -- which is not where I wanted to go!

I have this problem quite often when posting links to screenshots in Gitea (because the image upload is very painful, ref #3032)... But even now that I'm posting URLs, it's still not happy... 😢

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions