Fixed issue with secure items throwing 404, instead of redirecting to login page