Foswiki on GitHub is open for business! Next release meeting: Monday September 29, 1300Z

Item10070: move/rename does not find backlinks followed by underscore

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine FoswikiRender, FoswikiUIRename  
When moving a topic, foswiki does not find and update all backlinks to this topic - it misses the ones directly followed by an underscore. If a topic contains, for example,
_some text in italics with a link TopicToBeMoved_
and TopicToBeMoved is moved, the link is not updated. If you do not move the topic but have all backlinks listed with template=backlinksweb, the link is listed correctly. When using * or = instead of _, the link is also updated when moving the topic. Might be related to Item9966.

-- KerstinPuschke - 24 Nov 2011

Rename will only rename links to a topic. Bumpy words that are adjacent to text markup Italic WebHome Fixed WebHome Bold WebHome are not?? linking, so are not renamed. This task probably has to be addressed by expanding the definition of a WikiWord, so that they are linking when used with adjacent markup.

er... These are now linking examples. Need to look into this a bit further.

-- GeorgeClark - 15 Apr 2011

The issue is related to the regular expression used to search the file system for candidate topics. It uses the "\b" "Word Boundary" delimiter to find the referring topics. Unfortunately underscore is considered a word character, so it is not included in the characters matched by \b.

I'm not sure how to fix this.

-- GeorgeClark - 15 Apr 2011

Fix committed to trunk. Will merge into 1.1.4

-- GeorgeClark - 15 Apr 2011
 

ItemTemplate edit

Summary move/rename does not find backlinks followed by underscore
ReportedBy KerstinPuschke
Codebase 1.1.3, 1.1.3 RC1, 1.1.3 beta1, 1.1.2, trunk
SVN Range
AppliesTo Engine
Component FoswikiRender, FoswikiUIRename
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:11465 Foswikirev:11491
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r8 - 17 Dec 2011, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License