Author: bjwyse
Description:
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() );
}
Version: unspecified
Severity: trivial
Whiteboard: storypoints: 8
Attached: