Modified to support FolderGrid
Bug fix for redirected requests