Page MenuHomePhabricator

Enable the URLshortener for WDQS
Closed, ResolvedPublic


Once the URL Shortener is enabled on Meta, it should be possible to use it directly from the Wikidata Query Service, just like it is done with now:

  • In the dropdown menu "Link", have a button "shortlink to result" that generates a short URL with the Wikimedia URL shortener and allows to copy
  • Option: also have a button "shortlink to query" to generate a link to the query, not to the direct result

Event Timeline

Restricted Application added a project: Wikidata. · View Herald TranscriptApr 3 2019, 8:19 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
B20180 added a subscriber: B20180.Apr 3 2019, 2:48 PM
Smalyshev triaged this task as Medium priority.Apr 3 2019, 3:26 PM

Change 500833 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[wikidata/query/gui@master] Refactor URL shortener as separate API

Also consider support for using the shorturl in Facebook see T210139: Facebook adds fbclid ==> you cant paste in WDQS tiny URLSs

Smalyshev closed this task as Resolved.Apr 15 2019, 6:42 PM
Smalyshev claimed this task.

Hey @Stas, can we add the https:// before the URL on the Query Service? It would be more efficient for the users because Mediawiki doesn't recognize the links.

We can, though it would be nicer if UrlSortener service added it. But it's possible to check and add it if the service doesn't. Probably makes sense to add separate task for it.

I already made a patch and will deploy it next week