Fix redirect issue on admin views