Last modified by Eleni Cojocariu on 2026/11/24 18:51

Show last authors
1 [[Moving/renaming a Page>>documentation.xs.user.page.operations-refactor.move-rename.WebHome]] has some limitations, mainly affecting how [[references are updated>>documentation.xs.user.page.linking-references.automatically-updating-links.WebHome]] to point to the new Page location.
2
3 * {{version before="17.10.15, 18.4.8, 18.10.0RC1"}}Image references are broken when contained in a renamed terminal Page{{/version}}
4 * Links inside macro content are only updated for macros whose content is explicitly declared as [[wiki syntax>>Documentation.UserGuide.Features.XWikiSyntax.WebHome]]. As a result:
5 ** Links inside scripting macros (##Velocity##, ##Groovy##, ##HTML## with wiki syntax enabled, etc.) are not updated.
6 ** Macros that accept wiki syntax but do not declare it (e.g., built using older APIs) also do not have their links updated.
7 * Backlinks located inside macro content are not updated, unless the macro uses wiki syntax, or provides a dedicated ##MacroRefactoring## implementation.
8 ** For example, a Java macro that stores a page reference in a parameter (e.g., ##page="Space.PageName##") can implement {{scm path="xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/src/main/java/org/xwiki/rendering/macro/MacroRefactoring.java"}}##MacroRefactoring##{{/scm}} to ensure that parameter is also updated when the referenced page is moved or renamed.

Get Connected