Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

75%
+4 −0
Q&A Improving the "copy link" button

"Copy Link" is on top-level posts for consistency with answers. On an answer the URL takes you straight to that answer, which isn't what would be in your URL bar. (I think the work on the threade...

posted 3y ago by Monica Cellio‭

Answer
#1: Initial revision by user avatar Monica Cellio‭ · 2021-06-01T13:16:24Z (almost 3 years ago)
"Copy Link" is on top-level posts for consistency with answers.  On an answer the URL takes you straight to that answer, which isn't what would be in your URL bar.  (I think the work on the threaded-comments branch will add comment links, too -- same idea.)

Your proposal works smoothly if where you want to share the link expects Markdown, but would mean that somebody who wants to share it on a platform that expects a raw link (Twitter, Discord, etc) would have to strip it out again, and somebody who wants to use the link in HTML would have to rewrite the markdown as an HTML href (which expects the text and link in the other order).  This is why we went with just a raw link -- it's clear what you're getting and it works everywhere.

In principle we[^1] could modify "Copy Link" to give you a modal where you can choose the formatting (raw, markdown, HTML), but I don't think we should bake in any specific formatting.

I don't know why titles end with a space.  That sounds like a bug.  Thanks for the report.


[^1]: Or somebody who wants to write a userscript or contribute a PR.