fix the redirect to the last used folder when the folder was deleted