Quantcast
Channel: XWiki Forum - Latest topics
Viewing all articles
Browse latest Browse all 1220

Renaming destroys relative references ".SubPage.WebHome"

$
0
0

:christmas_tree: :slightly_smiling_face:

Renaming a page containing relative references in a display macro incorrectly converts the relative references to various incorrect direct references.

There are some similar issues with references on Jira, but I believe this might be a new one (if so, I would open a ticket):

Steps to reproduce:

Create a page:
Sandbox.Renaming-Bug.Page.WebHome

Create subpages with content:
Sandbox.Renaming-Bug.Page.FirstSubPage.WebHome
Sandbox.Renaming-Bug.Page.SecondSubPage.WebHome

Include the subpages in the page using the display macro:

{{display reference=".FirstSubPage.WebHome"/}}

{{display reference=".SecondSubPage.WebHome"/}}

The content of the subpages is displayed accurately in Page.

Rename Page to PageRenamed using Move/Rename.

The content of the subpages is not being displayed in PageRenamed.

Check the source code of PageRenamed:

{{display reference="Sandbox.Renaming-Bug.Page.FirstSubPage.FirstSubPage.WebHome"/}}

{{display reference="Sandbox.Renaming-Bug.Page.FirstSubPage.SecondSubPage.WebHome"/}}

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1220

Trending Articles