Skip to content

Autolink converting content in URL containing & symbol #10741

@MitchC1999

Description

@MitchC1999

📝 Provide detailed reproduction steps (if any)

Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.

  1. Open default fiddle (with autolink plugin)
  2. Paste "https://github.com/&sect"
  3. Observe that the URL is converted to "https://github.com/§"

✔️ Expected result

URL pastes as "https://github.com/&sect" and automatically converts to a link

❌ Actual result

URL converts to "https://github.com/§"

❓ Possible solution

One workaround is to paste as "https://github.com/&sect", either by copying that or using paste_preprocess.

Are there certain symbols that aren't valid in URLs? Or any way that we can convert the ampersand (&) in unclosed encoded character strings into "&", so that the URL is still pasted as valid?

The main occurrence is when a URL contains "/&section=", which is quite common.

📃 Other details

  • Worked in version: Never

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

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