I just ran into this and it was driving me crazy. I had a link in a post that went to the wrong place:
[The Right Place](https://example.org/the-wrong-url)
and I noticed that and copied the right URL, https://example.org/the-right-place, and then pasted it, and got this confusing result:
[The Right Place]([https://example.org/the-wrong-url](https://example.org/the-right-place))
Huh. I thought. Let me try that again. Is there some sort of new Firefox/Wayland past bug? So I selected the part in between the ()s again, and…
[The Right Place]([[https://example.org/the-wrong-url](https://example.org/the-right-place)](https://example.org/the-right-place))
OMG SO CONFUSED!!!1
Then I happened to remember I’d happened to scroll by the topic linked above the other day. I’m glad I had, because I guarantee you I would have been perplexed for a much longer time than one would hope from a person who is supposed to be smart.
Can this code please be adjusted to not do this at least to text that is a markdown link, but actually probably never to any URL ever, because
doesn’t seem like something anyone should be encouraged to do — let alone possible tricked into doing by the software trying to be helpful at the wrong time.
What exactly did you highlight when you pasted the second time? If the markdown is already set to [The Right Place](https://example.org/the-wrong-url), I highlight https://example.org/the-wrong-url and paste https://example.org/the-right-place, it just replaces the first URL with the second.
Also, pasting a standalone URL on top of another URL just replaces it. It doesn’t do this as far as I can see.
I just checked, and while it doesn’t happen here, it does happen on the Fedora sites and on https://discuss.python.org/. Perhaps there’s a fix in testing here that hasn’t gone out to hosted sites generally?
I think there’s generally a delay between a change making it to Meta and making it to hosted sites. I don’t know the general timeline or if it differs by customer, but I usually see changes on Meta make it to the hosted site I use within a few days.
As noted, can’t reproduce this on meta but can reproduce it on both Fedora sites and on the Python one. So if you didn’t fix it on purpose, something is still wrong somewhere.