Item10070: move/rename does not find backlinks followed by underscore
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
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