Fix pagination url error when seo url enabled.