Steps to replicate:
1)Login as admin
2) Add Documents and Media portlet to a page
3)Configure the portlet to display 5 items per page
4)Add 7 folders with names like 'folder001,folder002,...,folder007'
5)Go to the 2nd page and delete the folder named 'folder007'
6)The folder would be deleted but you would still remain on 2nd page.
7) Now folder006 is the only entry displayed in the page
8)If you delete this folder, the same page 2 is displayed with message "There are no documents or media files in this folder."
9) Now, add 3 files with names "test001,test002,test003"
10)These 3 files would be displayed in page 2.
11)Now if you delete file "test003" it will delete the file and redirect to the 1st page.
12)Now if you go back to page 2, click on the checkbox beside test002, click on Action and then delete,
again taken back to first page.
13)Hence, there is inconsistency in the page redirection after file delete and folder/multiple entries delete.
Reproduced in 6.1.x and Trunk