Fixed redirect when permission is denied for a page