You are here: Foswiki>Tasks Web>Item10070 (17 Dec 2011, GeorgeClark)Edit Attach

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

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: FoswikiRender, FoswikiUIRename
Branches:
Reported By: KerstinPuschke
Waiting For:
Last Change By: GeorgeClark
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 distro:73f38672bb90 distro:a6102a88078d
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy