Hi Peter,
On 11 Sep 2015 at 15:26:42, Peter Huisman (p.huisman@ximm.nl(mailto:p.huisman@ximm.nl))
wrote:
Hi,
After deleting a document, XWiki first shows a confirmation page and after that displays
the deleted document(s). I was wondering if I’m able to redirect the user to a different
page after the confirmation he has to give on the delete action. I have noticed some
remaks on the topic such as the JIRA issue XWIKI-9906 but I;m not sure if there have been
any changes on this.
If you pass the xredirect parameter in the URL for the delete action you’ll get redirect
to passed URL once the delete is done. Note that you can also pass confirm=1 to bypass the
confirmation box.
Thanks
-Vincent
I don’t mind solving the issue myself and I would
expect to be able to use the DocumentDeleted event listener. I do not have enough detailed
knowledge on the topic to be able to sort this out entirely by myself so that leaves the
following questions:
1 - Any news on the JIRA issue in any XWIKI version?
2 - Is it possible to use the DocumentDeleted listener for this purpose?
3 - If yes, does anyone have any suggestion on the approach?
4 - if no, is there any other way to solve this?
Thanks in advance for the feedback,
Br,
Peter