Last modified: 2012-12-13 11:17:01 UTC
Created attachment 10628 [details] Notice the encoding in the url has a '+' for the space character I found that creating an item with a link title including a space was being encoded incorrectly intermittently when refreshing the page. As per the attachment, the link with the title 'Cork (City)' is being encoded as 'Cork+%28city%29' when it should be 'Cork_%28city%29'. I was able to fix in my local development working copy by replacing the space with underscore before the encoding in getPageUrl in WikibaseSite.php. public function getPageUrl( $pageName = '' ) { $pageName = str_replace(' ', '_', $pageName); return str_replace( '$1', urlencode( $pageName ), $this->getPageUrlPath() ); }
*** Bug 36999 has been marked as a duplicate of this bug. ***
Marking as new.
Before generating URLs to the client sites, normalize the form of the title.
Use the canonical database form of the title to generate URLs to the client sites.
Sitelinks should be modeled as objects and provide accessor functions for the different syntactic forms.
Picked up for Sprint 8.
Partly (?) solved in https://gerrit.wikimedia.org/r/#/c/14069/ probably should be able to return the title as well on a db-form. The URL is now unconditionally returned.
Verified in Wikidata demo time for sprint 9