This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-cf156863-b114-4a49-97fa-fccdb671211f XWIKI-24413 Open

Image reference is not updated after page rename when parent page name contains special characters

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-96c2afc6-cf42-4af1-b0c4-511d14a45620 Eleni created this issue on 25/May/26 13:31
 
Summary: Image reference is not updated after page rename when parent page name contains special characters
Issue Type: cid:jira-generated-image-avatar-cf156863-b114-4a49-97fa-fccdb671211f Bug
Affects Versions: 17.10.7
Assignee: Unassigned
Components: Attachments, Refactoring
Created: 25/May/26 13:31
Priority: cid:jira-generated-image-static-major-2bc08816-5f8c-4b2b-a5a6-a72cd3cdfa97 Major
Reporter: Eleni
Description:

Steps to reproduce:

1. Create a top-level page named: "page-name".
2. Create a child page of "page-name" named "example-page".
Inside "example-page", insert an image via the WYSIWYG editor named "example.png".
Example syntax:

[[image.png]]

3. Create a child page of "example-page" named "child-example-page".
4. Inside "child-example-page", reference the image from "example-page" using:

[[image.example-page.WebHome@example.png]]

5. Rename the top-level page "page-name" to "page-renamed". Make sure the "Update links" option remains checked (default behavior).
6. Open "child-example-page".

Actual result: The image is no longer displayed. The source of "child-example-page" still contains the old image reference:

[[image.example-page.WebHome@example.png]]

The image reference is not updated after the rename operation.

Expected result: The image reference should be automatically updated after the rename:

[[image.example-page.WebHome@example.png]]

The image should continue to be displayed correctly.

The issue reproduces if the page name contains special characters (spaces, dashes, underscore).

 
 

1 update

 
cid:jira-generated-image-avatar-96c2afc6-cf42-4af1-b0c4-511d14a45620 Changes by Eleni on 25/May/26 13:32
 
Description: Steps to reproduce:

1. Create a top-level page named: "page-name".
2. Create a child page of "page-name" named "example-page".
Inside "example-page", insert an image via the WYSIWYG editor named "example.png".
Example syntax:
{code
:java }
[[image.png]]
{code}
3. Create a child page of "example-page" named "child-example-page".
4. Inside "child-example-page", reference the image from "example-page" using:
{code
:java }
[[image.example-page.WebHome@example.png]]
{code}
5. Rename the top-level page "page-name" to "page-renamed". Make sure the "Update links" option remains checked (default behavior).
6. Open "child-example-page".

Actual result: The image is no longer displayed. The source of "child-example-page" still contains the old image reference:
{code
:java }
[[image.example-page.WebHome@example.png]]
{code}
The image reference is not updated after the rename operation.

Expected result: The image reference should be automatically updated after the rename:
{code
:java }
[[image.example-page.WebHome@example.png]]
{code}
The image should continue to be displayed correctly.

The issue reproduces if the page name contains special characters (
tested and reproduced for { * } spaces, dashes, underscore { * } ).