You are here: Foswiki>Tasks Web>Item12526 (19 Nov 2013, GeorgeClark)Edit Attach

Item12526: Bracketed links don't recognize all anchors generated for TML headings

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.9
Target Release: patch
Applies To: Engine
Component: FoswikiRender
Branches: Release01x01 trunk
Reported By: JanKrueger
Waiting For:
Last Change By: GeorgeClark
Foswiki::Render::Anchors generates anchors out of HTML/TML headings, escaping all characters but alphanumerics, underscores, dots, and colons (A-Za-z0-9_.:). The code that formats bracketed links, however, only recognizes alphanumerics and underscores as valid characters in anchors (defined by $Foswiki::regex{anchorRegex}).

The result is that a link like [[#Foo.Bar]] will be incorrectly treated as a WikiWord and expanded to a link pointing to .../Foo/Bar.

The regex should be updated to match what is being generated, at the very least (technically many more characters are valid in URI fragments).

-- JanKrueger - 04 Jun 2013

 
Topic revision: r7 - 19 Nov 2013, GeorgeClark - This page was cached on 26 Aug 2016 - 22:10.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License