How to remove query string page from the first page with Knp Paginator?

  knppaginator, symfony4

Suppose I have a job list : foobar.com/jobs, the list is paginated using KnpPagintor. If I click on page 1 it loads the same page but with an URL with query string : foobar.com/jobs?page=1

How can I remove the ?page=1 for only the first page ?

Thanks 🙂

Source: Symfony4 Questions

LEAVE A COMMENT