"Copy link address" for ๐Ÿ”— share link popup?

Am I the only one who finds it a bit of a nuisance (given all the other luxuries on discourse) that there is no โ€œcopyโ€ button on the :link:-popup? It would be great to have, similar to copy invite link button.

2 ืœื™ื™ืงื™ื

Great idea! Would save a lot of unnecessary clicks

ืœื™ื™ืง 1

Copy to clipboard is not really supported on all browsers as of 1-2 years ago. Maybe that changed in latest versions. You can check if you are interested.

ืœื™ื™ืง 1

Do you mean I should find out if all browsers now support copy to clipboard?

Well, Iโ€™d simply say that if itโ€™s possible for invite links (in August 2015), why not for any link?

Feel free to do the research.

Quoting from How do I copy to the clipboard in JavaScript? - Stack Overflow

The JavaScript document.execCommand(โ€˜copyโ€™) support has grown, see the links below for browser updates:

  • IE10+ (although this document indicates some support was there from IE5.5+).
  • Google Chrome 43+ (~April 2015)
  • Mozilla Firefox 41+ (shipping ~September 2015)
  • Opera 29+ (based on Chromium 42, ~April 2015)
7 ืœื™ื™ืงื™ื

Sure @techAPJ if this is working in all browsers now we could auto-copy the link when the share dialog is popped. Might even be useful on touch devicesโ€ฆ

4 ืœื™ื™ืงื™ื

At this time, reply as a related topic is still hidden behind the share icon.

Thatโ€™s the biggest reason I have to click on the link icon at the bottom of the post, and Iโ€™d rather not have my clipboard messed with, as itโ€™s likely to have content I intend to use the reply Iโ€™m posting.

3 ืœื™ื™ืงื™ื

Allen, as Spock once said to Kirk, and then in a 2009 reboot as Kirk said to Spock, โ€œthe needs of the many outweigh the needs of the fewโ€.

2 ืœื™ื™ืงื™ื

Iโ€™m all for a copy function. Thatโ€™s not the issue.

Moving the Reply as Linked topic out of the Share widget would be even better.

Iโ€™m with @watchmanmonitor, please donโ€™t auto-copyโ€ฆIโ€™d be very disappointed if the contents in my clipboard were erased due to clicking a button (that doesnโ€™t say or imply copy) on Discourse.

Iโ€™d much prefer an explicit button (ร  la bit.ly and other sites I cannot think of at the moment).

If we need a โ€œbuttonโ€ then why notโ€ฆ

  • see the link, press your right mouse โ€œbuttonโ€ to copy it

  • see the link. Tap and hold to copy it

โ€ฆ use the โ€œbuttonโ€ that is already there?

I could be wrong, but the way I interpreted the OP was a request for an explicit button. Essentially reducing the current 3 clicks to 2 clicks.

Both of your suggestions require three clicks: click share than either right click then left click, or hold then tap.

ืœื™ื™ืง 1

You can always right click the timestamp at upper right to get the link to a post as well. Thatโ€™s one โ€œclickโ€.

And tap-and-hold is just two โ€œtapsโ€, not three. Tap one, expand the share dialog, tap-and-hold on the link is two.

I might be an edge case here but my tendency on desktop is to hit โ€œ#โ€ and then enter (takes me to the top), cmd+L and then cmd+C. To me itโ€™s a lot quicker to stay on the keyboard and skip the mouse entirely.

On mobile, I tap the time (just above the URL in the address bar) to get to the top, tap the timestamp of the post, tap/hold the link, and hit copy.

Both of those are when Iโ€™m trying to share the topic and not necessarily a post. When sharing a post I skip the process of getting to the top on both. Itโ€™s all the same at that point. But I should also point out that I donโ€™t worry about the ?u=joebuhlig string at the end of the url either.

Which button are you referring to?

I have an idea โ€œthe buttonโ€ is the :link: at the bottom of each post. I wonder if this mockup @tophee had in mind:


I went off on a tangent because this solution knocks the current โ€œReplyโ€ button out of the link box.

I feel it doesnโ€™t really belong there anywayโ€ฆ Iโ€™m clicking "link to this articleโ€™ not โ€œreply with quoteโ€

I found the topic which is most relevant to my sidebar comment:

Solving the reply-as-linked-topic need would simplify the :link: usage which is the heart of the current topic.

This just gets worse and worse. For such a small thing (seriously, count the actions saved here, it is at best one) it is a giant :poop: sandwich.

This is exactly what I had in mind. Thanks for visualizing it. I even agree that the โ€œ+ New Topicโ€ is not particularly well placed (nor well-labelled), but whether or not to move it is unrelated to this topic (so whoever wants to discuss that, please use that button to do so).

2 ืœื™ื™ืงื™ื

PR for it here:

This feature is not supported on all browsers though. Here is the result from my testing on various OS:

:heavy_check_mark: Works on:

  • Latest Safari on macOS
  • Latest Chrome on macOS
  • Latest Chromium on macOS
  • IE11 on Windows 10
  • Latest Chrome on Android 5
  • Latest Safari on iOS 10

:heavy_multiplication_x: Does not work on:

  • Latest Firefox on macOS
  • Edge 14 on Windows 10
5 ืœื™ื™ืงื™ื