Answer the question
In order to leave comments, you need to log in
How to keep list of get variables in url when adding page= ?
There is a list of goods, in get a filter for sampling. if there are several pages, then you need to add &page=2 &page=3...
But this construction: <a href="?page={{page}}">
clears all get-filters, leaving only itself.
How can I make it so that this parameter is added, and not overwritten everything that is?
Answer the question
In order to leave comments, you need to log in
You provided little information. Where are the other parameters stored (for filtering)? Why don't you include them in the url?
Generally you need Paginator and/or UrlGenerator.
If some kind of self-propelled gun, then you need to transfer the rest of the parameters to the twig and add them to the url:
But it certainly smacks of
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question