Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
8.4
-
None
-
N/A
-
N/A
-
Description
To reproduce, create a page (e.g. Main.Page1.WebHome):
{{context document="Main.Page2.WebHome"}} [[label1>>]] [[label2>>something]] {{/context}}
You'll see that the first link points to the current page (incorrect), while the second one points to a children of Main.Page2.WebHome (correct).
AFAICS this is because in https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-syntaxes/xwiki-rendering-syntax-xhtml/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/link/DocumentXHTMLLinkTypeRenderer.java#L143 we always generate an HREF of "#", even if the base reference is different from the current reference.
Attachments
Issue Links
- is related to
-
XRENDERING-475 Add ability to generate a TOC for another page
- Closed
- relates to
-
XWIKI-13734 Context macro should execute transformations in the context of the referenced document
- Closed