Renaming destroys relative references ".SubPage.WebHome"

: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"/}}

Hello, thx for reporting. I could reproduce on XWiki 16.10.1.

Could you please report a jira?

Thx!

1 Like

XWIKI-22745

I had some issues with the Jira WYSI(N)WYG-Editor :sweat_smile:

1 Like