Tweak urls for pagination