M
M
My joy2014-10-19 17:39:43
PHP
My joy, 2014-10-19 17:39:43

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

2 answer(s)
B
Boris Benkovsky, 2014-10-20
@benbor

Try
for PHP it should work

A
Alex, 2014-11-09
@shoomyst

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 question

Ask a Question

731 491 924 answers to any question