Page MenuHomePhabricator

Add copy button to URL shortener result
Closed, ResolvedPublic

Assigned To
Authored By
Apr 2 2019, 10:09 AM
Referenced Files
F29085493: image.png
May 17 2019, 11:44 AM
F29085450: image.png
May 17 2019, 11:43 AM
F29085438: image.png
May 17 2019, 11:43 AM
F28581517: capture-20190404-201901.png
Apr 4 2019, 6:20 PM
"Love" token, awarded by NahidSultan."Meh!" token, awarded by Lea_Lacroix_WMDE."Love" token, awarded by Steinsplitter."Love" token, awarded by alaa.


After shortening, you need to select and copy the link from Special:UrlShortener. It would be amazing if we had a button and when you clicked it, boom, magically it stores it in the clipboard.

The copied URL should also have the https:// attached to it, since in the wikis this prefix is needed to be recognized as a URL.

Event Timeline

Aklapper renamed this task from Add copy button to URL shortner result to Add copy button to URL shortener result.Apr 2 2019, 5:18 PM

If it can same as Google translate button

capture-20190404-201901.png (43×42 px, 287 B)

The first thing here is determine the icon, ooui doesn't have any icon that can resemble copy:
@Volker_E Do you know which icon is good for this use case?

Change 510829 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/UrlShortener@master] Add copy to clipboard button

I didn't see this task before writing the patch, sorry. I went with the "articles" icon:

image.png (35×104 px, 1 KB)

which appears to be fairly commonly used for "copy icon":

image.png (459×629 px, 64 KB)

Change 510829 merged by jenkins-bot:
[mediawiki/extensions/UrlShortener@master] Add copy to clipboard button