Updating links (field type: Page) in AWM

Hi!

I have some trouble renaming pages: Usually XWiki updates links after renaming or removing a XWiki page and it marks broken links via CSS by adding a “?” symbol at the end of the link. Sometimes that does not work and so a have a broken link checker using:

$services.query.xwql("select link.id.link, link.fullName from XWikiLink link where link.id.link not in (select distinct doc.fullName from XWikiDocument doc)")

Renaming a page that is linked within a AWM field of type Page results in:

  1. The link in the field was not updated.
  2. It is correctly marked with the “?” as a broken link.
  3. My query does not list this kind of broken link(s).
  4. Besides: This kind of links in AWS are not listed as backlink under the information section, what would be great. I think this fact is part of the problem?

Any ideas how to fix this? Any ideas for a workaround?

Hi, this is indeed a current limitation: Page type xproperties are not taken into account when saving the links of a document: https://github.com/xwiki/xwiki-platform/blob/e80dcb59f2f8347b2d3cd24ded3d260ceacf6a3b/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java#L5749

(only textarea xproperties are checked).

I think your issue is Loading...

Thanks

1 Like