Last modified: 2012-12-13 11:21:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42389, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40389 - Set up and test the pretty URLs for Wikidata
Set up and test the pretty URLs for Wikidata
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
storypoints: 5
:
Depends on: 36419
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-20 12:18 UTC by denny vrandecic
Modified: 2012-12-13 11:21 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description denny vrandecic 2012-09-20 12:18:54 UTC
As per the specification on https://meta.wikimedia.org/wiki/Wikidata/Notes/URI_scheme#Proposal_for_Wikidata 

Set up for 4 languages (en, de, hu, he) and set all appropriate rewrite and redirect rules.
Comment 1 Silke Meyer (WMDE) 2012-09-25 10:50:12 UTC
External factor: Our colleague who is currently on vacation has to set up the language subdomains for us.
Comment 2 Silke Meyer (WMDE) 2012-09-28 11:57:06 UTC
I skipped the middle part of the specification. The following links are now redirected to the item Helium:

en.wikidata-dev-repo.wikimedia.de/wiki/Helium
de.wikidata-dev-repo.wikimedia.de/wiki/Helium
he.wikidata-dev-repo.wikimedia.de/wiki/%D7%94%D7%9C%D7%99%D7%95%D7%9D
hu.wikidata-dev-repo.wikimedia.de/wiki/Hélium

en.wikidata-dev-repo.wikimedia.de/title/Helium
de.wikidata-dev-repo.wikimedia.de/title/Helium
he.wikidata-dev-repo.wikimedia.de/title/%D7%94%D7%9C%D7%99%D7%95%D7%9D
hu.wikidata-dev-repo.wikimedia.de/title/Hélium

The reasons why I skipped the first step (redirect to http://wikidata-dev-repo.wikimedia.de/title/enwiki:Helium): The part "enwiki:Helium" is addressed as one single entity and I didn't find a way to separate them. (Trials are commented out in /etc/apache2/sites-available/wikidata-dev-repo.wikimedia.de)
Comment 3 Silke Meyer (WMDE) 2012-09-29 08:26:09 UTC
Thx for the feedback - now both parts are applied. You won't see it, when the item is loaded, you get a URL like http://wikidata-dev-repo.wikimedia.de/wiki/Data:Q3 -> was this what we wanted?
Comment 4 Daniel Kinzler 2012-09-30 09:19:23 UTC
Thanks Silke!

Seems to work so far, though it's not quite what is specified in <https://meta.wikimedia.org/wiki/Wikidata/Notes/URI_scheme>:

<en.wikidata-dev-repo.wikimedia.de/wiki/Helium> correctly redirects to <http://wikidata-dev-repo.wikimedia.de/title/enwiki:Helium>, but that should then be a rewrite, not a redirect, to <http://wikidata-dev-repo.wikimedia.de/wiki/Special:ItemByTitle/enwiki/Helium>.

That only requires a small change to the rewrite rule: Use the local web path, not the full url, as the target, and use the [L] (last rule) instead of the [R] (redirect) option. 

Oh, btw: I think both rewrites and redirects should use the QSA (querry string attach) flag. That causes query parameters like setlang=en to be passed on to the target address. Without QSA flag, query parameters get stripped.
Comment 5 Silke Meyer (WMDE) 2012-10-02 09:56:10 UTC
OK, I applied these changes. Nevertheless, calling the Special:ItemByTitle seems to redirect to http://wikidata-dev-repo.wikimedia.de/wiki/Data:Q3. This is not due to the rewrite rules any more.
Comment 6 Anja Jentzsch 2012-11-29 12:41:55 UTC
Verified in Wikidata demo time for sprint 18

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links