There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-9e89e871-c03c-4469-bb6d-a14063a8eb45 XWIKI-24413 Open

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

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-4a46f0a5-781d-449b-9968-338d31bf94f8 Marius Dumitru Florea on 28/May/26 14:22
 

I did the following test on 18.4.0:

  • create top level page "red"
  • created child page "green" under "red"
  • uploaded mflorea.jpeg to "green" page
  • created child page "blue" under "green"
  • inserted mflorea.jpeg and a link towards "green" in the content of "blue"
    [[image:red.green.WebHome@mflorea.jpeg]]
    
    [[green>>doc:red.green.WebHome]]
    
  • renamed "red" to "pink"
  • the content of "blue" became:
    [[image:red.green.WebHome@mflorea.jpeg]]
    
    [[green>>doc:pink.green.WebHome]]
    

As you can see the link target has been updated while the image source has not. The page names I used didn't have any special characters. Note that the problem stays if I use attach:red.green.WebHome@mflorea.jpeg as image reference, i.e. it doesn't matter if the resource reference is typed or not.

 
cid:jira-generated-image-avatar-4a46f0a5-781d-449b-9968-338d31bf94f8 Marius Dumitru Florea on 28/May/26 14:23
 

was actually meant to be

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

this can't work for referencing the image from the parent page. You need:

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