Item10151: Interwiki links do not work when destination topic contains parentheses

Priority: Normal
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Extension
Component: InterwikiPlugin
Reported By: WryFi
Waiting For:
Last Change By: KennethLavrsen
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
 

ItemTemplate edit

Summary Interwiki links do not work when destination topic contains parentheses
ReportedBy WryFi
Codebase 1.1.2
SVN Range
AppliesTo Extension
Component InterwikiPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:aefd02829958 distro:5cbceee32973 distro:8824a16f2ebe distro:47fb07b16e7b
TargetRelease patch
ReleasedIn 1.1.3
Topic revision: r9 - 16 Apr 2011, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License