Last modified: 2009-02-28 18:58:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11729 - space in external links
space in external links
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.12.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-21 14:14 UTC by DavidL
Modified: 2009-02-28 18:58 UTC (History)
2 users (show)

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


Attachments

Description DavidL 2007-10-21 14:14:20 UTC
Sometimes we get parameter containing space character in their value. For example: MediaWiki:Sp-contributions-footer using $1 for the user name when this user name contain a space character.

When this value need to be in an external link, there is no possibility to create the correct link :
  - using the wiki syntax [ ] the link is broken at the first space character
  - using the HTML a tag is not possible (displayed as raw text)
Comment 1 Alexander Sigachov 2007-10-21 14:32:24 UTC
Use %20

like

http://en.wikipedia.org/wiki/Wikimedia%20Foundation
Comment 2 DavidL 2007-10-21 14:46:29 UTC
It's not about literal links, but using $1 :
example:

[http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user=$1&dbname=frwikibooks_p Statistiques détaillées]

where $1 is replaced by MediaWiki with the username, and this username contains a space character

Comment 3 Rob Church 2007-10-21 15:33:04 UTC
There should be a URL-encoding parser function for this purpose, either {{urlencode}} or {{#urlencode}} (can't remember which).
Comment 4 DavidL 2007-10-21 16:11:56 UTC
I already tried {{urlencode:$1}}  ->  %241
and some other solutions, all failed.

See the history of MediaWiki:Sp-contributions-footer [http://fr.wikibooks.org/w/index.php?title=MediaWiki:Sp-contributions-footer&action=history]
Comment 5 Niklas Laxström 2009-02-28 18:58:21 UTC
Fixed by tim in r31044.

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


Navigation
Links