bug: ensure pretty urls for pagination are respected