[#2373]set redirection in case of access denied