Page MenuHomePhabricator

add paramter to wbgetitems to make full url optional in the result
Closed, ResolvedPublic

Description

It would be very usefull to get the full url returned for sitelinks.

When querying interwikilinks or langlinks you can add llurl or iwurl, so that the full url is additionally returned as attributes named url.

Example:
http://de.wikipedia.org/w/api.php?action=query&titles=Berlin&prop=langlinks|iwlinks&llurl&iwurl

Thats a very often used query. Always querying the interwikimaps to get the correct target for an prefix doubles the numbers of requests and slow down bots.


Version: unspecified
Severity: enhancement
Whiteboard: storypoints: 3

Details

Reference
bz37306

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:24 AM
bzimport set Reference to bz37306.
bzimport added a subscriber: Unknown Object (MLST).

The URL is always returned in the latest development version for all API modules using sitelinks, but the behaviour should be triggered by a parameter.

  • Bug 38569 has been marked as a duplicate of this bug. ***

fixed by I55ce5375, tests pending

Verified in Wikidata demo time for sprint 11