Steps to reproduce:
- create a new space and 2-3 pages
- mark every page as "hidden"
- go to the home page, hover the "Space" menu and click on "Delete"
You will get the first confirmation message saying "This action will move ALL documents in space XYZ to the Recycle Bin. Are you sure you wish to continue?" but after clicking on "Yes" you will be redirected back to the home page.