Fix the next/previous URL issue in calendar