NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item10151: Interwiki links do not work when destination topic contains parentheses
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Extension |
InterwikiPlugin |
|
When creating interwiki links using
InterwikiPlugin, the plugin fails to properly create links if the destination topic name contains parentheses.
For example,
Wikipedia:Fork works without trouble, but
Wikipedia:Fork_(software_development) does not create the expected Wikipedia link. If you force link it, e.g., !
Wikipedia:Fork_(software_development), the text will be tagged with a question mark, with a create link to a new page in the current web (e.g.
Wikipedia:Fork_(software_development)).
In order to link to this Wikipedia topic, I have to url-encode the parentheses in the topic name, a requirement my users are unlikely to ever guess:
Wikipedia:Fork_%28software_development%29.
--
WryFi - 12 Dec 2010
At the advice of pharvey in IRC, I tried editing the regex on line 59 of lib/Foswiki/Plugins/InterwikiPlugin.pm, but this alone was inadequate to fix the problem.
--
WryFi - 12 Dec 2010
Will be fixed in 1.1.3, or you can
apply this patch if you need it now.
--
AndrewJones - 13 Dec 2010