Direct copying of post url

AI-generated summary

The discussion centers on a new feature that allows users to directly copy a post’s URL to their clipboard via the share button, bypassing the traditional share modal. chapoi introduced the feature and noted that the original share modal remains accessible via the post timestamp. merefield raised a question about whether the referrer username is included in the copied link, to which chapoi confirmed it is currently included but could be adjusted. merefield referenced a prior discussion on optional username appending and expressed personal preference for the mild “tracking” it provides. chapoi suggested that decisions around referrer inclusion should align with broader site or future user settings rather than be handled by this component alone. merefield agreed, noting they were satisfied with the feature’s inclusion. Canapin humorously suggested that @Moin would appreciate the new functionality. The feature is still under active development, and feedback is welcomed here.

The share button on the post actions has been outfitted with new functionality: it will now copy the url of a post directly unto your clipboard, skipping the original share modal.

The regular share modal can still be used by clicking on the post timestamp:


Theme component is in active development; feel free to leave feedback here: Discourse post direct copy link

8 Likes

One reason for the link dialogue was to be able to edit out the referring username if you preferred?

Does this new flavour default referrer username included?

2 Likes

Yes it does atm, but could be easy to solve. What’s the concern that it’s included?

2 Likes

I have no concern whatsoever, but it came up … let me see if I can link

EDIT:

Personally I prefer this mild “tracking”.

4 Likes

I have no strong objections either for or against, but based on that other topic, I would say the decision of having it as a per-user setting or anything else relating to it, probably exceeds this small component. Meaning, I’d prefer this component to do what is expected based on the site settings and possibly on the future user setting.

5 Likes

Agree. Personally just needed clarification. I’m glad the feature is bundled.

3 Likes

I suspect @Moin will be delighted by this component :smile:

5 Likes

2 posts were split to a new topic: How to enable CopyLink?

This is now a core feature. :partying_face: