3 ms·
And if not, you can just copy the link down below to share this page! Or you could just copy it from the address bar?
by userbinator 2y ago
And if not, you can just copy the link down below to share this page!
Or you could just copy it from the address bar?
- simonw 2y agoI'm beginning to suspect that a substantial portion of users don't habitually do that, for two reasons: 1. They don't understand URLs. That's not too surprising to be honest, URLs are pretty complex things. 2. They've been burned enough times by crap SPAs that they don't instantly assume something they are looking at has a dependable URL they can copy and share. Thanks to 2 I've recently started rethinking a bunch of my own projects - I think I need to add explicit "share" buttons that copy URLs to people's clipboards for them.
- 0xdade 2y agoThe share button I have uses the navigator.share API if it's available, or tries to fall back to navigator.clipboard. Unfortunately I think I didn't do adequate testing to make sure the clipboard feature works in whatever edge cases you might have the clipboard API but not the Share API, so I'm pretty sure _that_ is broken. I really just put the URL at the end of the page with a `user-select: all;` to make it easy to copy _after_ you've read the content. It's also rendered server-side so even if I used utm or some other tracking things, the query params would automatically not be included in the server-rendered share link, just the permalink to the post. But to the original authors point, I also do find myself often just copying from the address bar and then manually deleting a bunch of the garbage at the end of URLs. Maybe that's why I thought it nice for a simple "copy this link" when JS is disabled.