Correct next/previous links on diary list page