#243: copy button should copy the link #244

Merged
fen merged 1 commits from fix-243 into dev 2026-09-16 20:44:56 +00:00
Collaborator

Fix attempt 1. Ref #243

The paste page 'copy' button wrote the paste CONTENT (and could silently fail on clipboard errors while still showing Success!, leaving whatever was previously on the clipboard, e.g. the paste id). Per the issue the button should copy the LINK.

  • New 'link' button next to 'copy' writes the full paste URL (origin + path, custom slugs included)
  • 'copy' still copies the paste content
  • Both paths now toast 'Copy failed' on clipboard errors instead of showing a false 'Success!'

Verified on a local build via CDP clipboard probe: link button puts https://host/ on the clipboard, copy button puts the content; no title-bar overflow at 375px width.

Fix attempt 1. Ref #243 The paste page 'copy' button wrote the paste CONTENT (and could silently fail on clipboard errors while still showing Success!, leaving whatever was previously on the clipboard, e.g. the paste id). Per the issue the button should copy the LINK. - New 'link' button next to 'copy' writes the full paste URL (origin + path, custom slugs included) - 'copy' still copies the paste content - Both paths now toast 'Copy failed' on clipboard errors instead of showing a false 'Success!' Verified on a local build via CDP clipboard probe: link button puts https://host/<slug> on the clipboard, copy button puts the content; no title-bar overflow at 375px width.
fen added 1 commit 2026-09-16 20:40:40 +00:00
#243: copy button copies the paste link; content copy kept on separate button
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 26s
1f745b6e59
fen merged commit 3c5ccfb787 into dev 2026-09-16 20:44:56 +00:00
Sign in to join this conversation.