Change routing rule for pagination