Please don't double link urls if one pastes over a URL in markdown

Continuing the discussion from Idea: Paste links in the editor:

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

[https://example.org/the-wrong-url](https://example.org/the-right-place)

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.

8 Likes

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.

Maybe these issues have already been fixed?

1 Like

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?

1 Like

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.

1 Like

Can you reproduce this on meta? I just tried and could not reproduce the issue in the OP.

1 Like

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. :slight_smile:

Maybe these sites need to update.

Yes I think youā€™re right - this was fixed yesterday:

@mattdm Iā€™ll run a deploy on your site right now, so the fix should be live in the next few minutes

2 Likes

This also happens on my site, which I mentioned in my second edit in this topic.

1 Like

Iā€™ll make sure to get this fix rolled out across our standard/business tier hosting in the next hour or so

Thank you so much!

I do like the feature in general ā€” it is indeed quite convenient to write a paragraph and then go back and add in links on a whim.

1 Like

Update - my site seems to be back to normal now. Thanks so much!

2 Likes

This topic was automatically closed after 42 hours. New replies are no longer allowed.