#512 invert 'prev' and 'next' page links