Hi devs,
When you want a local link you use something like [[label>>#anchor]]
and it will produce an XHTML like <a
href="/xwiki/bin/view/CurrentSpace/CurrentDocument#myanchor">label</a>.
IMO this is not very good since:
* it's doing lot's of useless work (resolving the reference, getting
the corresponding XWikiDocument to finally generate the URL thanks to
URLFactory
* it's breaking any included local reference since it will be resolved
based on the source document and not the current document which makes
sense when you target a specific document but not when you asked for a
local reference
Note that it used to be that way (and I tough it was still the case)
and I don't remember why this has been changed.
So I proposed to put back the specific handling of empty reference:
produce <a href="#myanchor">label</a> in the XHTML renderer for the
previous example.
WDYT ?
Here is my +1
--
Thomas Mortagne