This theme component, originally created by chapoi, added a direct-copy-to-clipboard button to post menus in Discourse, replacing the default share modal with a streamlined copy action. It displayed a toast notification and checkmark on success, and was desktop-only — mobile retained native share support. The component is now deprecated, as its functionality has been merged into Discourse core via pull request #24709 by martin. Site admins can now toggle between the new copyLink button or the legacy share button via the post_menu site setting. Lilly and Canapin clarified that users can customize which buttons appear in the post menu, including removing them entirely. twofoursixeight suggested showing only the copy button for logged-out users to simplify sharing. sam noted users can still access the old share dialog by clicking the post timestamp, responding to feedback from darkpixlz. chapoi acknowledged the flexibility but recommended keeping the copy button as default for usability. Users are strongly advised to uninstall this component to avoid conflicts with core features.
On click it shows a toast notification and a little checkmark on the copy button, to indicate the copy action happened.
Desktop only – mobile has native copy popup support.
Only the post menu button is impacted, the timestamp and topic share button remain the same.
Previous version changes
The previous version had similar functionality on mobile, but decided to drop this in favor of the native support.
It also had the option to keep the original share-modal button in the post menu actions, but removed that for now to avoid confusion and complexity. So in the latest version, you choose either type A or type B functionality.
The toasty was shown in the bottom right corner, but on large screens this was too far from the action, so moved it closer
just to clarify, i believe the existing share button is also optional to show in admin-settings under post menu? (which of course is the same as clicking the timestamp in top right corner of a post)
When signed out, only the copy button should appear. It would make the anonymous sharing process easier for logged out users and two copy buttons arent needed
I worked with @chapoi to merge this into core this week, and it’s here now:
You should uninstall this theme component if you have it installed.
A new post_menu button, copyLink, is added and used as the default instead of share. If site owners want the old behaviour back, they just need to change the post_menu site setting to use the share button instead of copyLink.
On desktop, this button will copy the link of the post to the user’s clipboard and show a nice animation. On mobile the native share menu will be shown.