Moving docs without backlink

One more thing, I just fixed the example in documentation.
The problem is that the following line creates the $moveRequest object

#set ($moveRequest = $services.refactoring.requestFactory.createMoveRequest($source, $destination))

While the following one tries to use the $renameRequest object that doesn’t exist.

#set ($discard = $renameRequest.setUpdateLinks(false))
$services.refactoring.move($moveRequest)).join()

See https://extensions.xwiki.org/xwiki/bin/view/Extension/Refactoring%20Module?viewer=changes&rev1=31.1&rev2=32.1

1 Like