Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 8.4
-
Fix Version/s: None
-
Component/s: Syntax - xhtml/1.0 & html/4.01
-
Labels:None
-
Documentation:N/A
-
Documentation in Release Notes:N/A
-
Similar issues:
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
-