Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.1 RC1
-
Component/s: Syntax - xwiki/2.0
-
Labels:None
-
Similar issues:
XRENDERING-112Position of the {{include}} after syntax convertion XRENDERING-55 Add a way to configure a renderer as full or fragment renderer XRENDERING-2 XHTML renderer should protect itself from link inside link from the XDOM XRENDERING-290 Add support for linking to a user profile page in XWiki Syntax XRENDERING-131Quote macro with aparameter break XWiki Syntax 1.0 to XWiki Syntax 2.0 XRENDERING-160 XHTML to XWiki converter fails to convert ordered list XRENDERING-177Empty lines around stand-alone macros are badly converted XRENDERING-292New Syntax: Renderer for LaTex via TeX4ht XRENDERING-22 Add the ability to specify the action in the link syntax XRENDERING-92 Add possibility to enable link to image in image syntax
Description
If you convert this XHTML:
<p><a href="http://www.xwiki.org/path#foo">test</a></p>
to XWiki 2.0 syntax, you get:
[[test>>http://www.xwiki.org/path#foo]]
which is the expected result. But if you convert:
<p><a href="#foo">test</a></p>
you get:
[[test>>\#foo]]
As you can see the fragment identifier is escaped. This breaks the links. Note that in both previous examples the link markers are missing. If I add the link markers to the second example it works:
<p>
<!--startwikilink:false|-|url|-|#bar-->
<span class="wikiexternallink">
<a href="#bar">test</a>
</span>
<!--stopwikilink-->
</p>
The use case for the missing markers is when you import an office document that has internal links (e.g. a table of contents).
Issue Links
- relates to
-
XWIKI-6678
Office viewer issues
-