Answer the question
In order to leave comments, you need to log in
How to color url when form method is GET and parameters are array?
That is, I have a form with a checkbox that filters the data on the page and sends a get request to the server with these filters, and the url turns out to be %C and so with each filter dirtier and dirtier
ps All this is in Laravel (mb there is some kind of solution)
Answer the question
In order to leave comments, you need to log in
I would suggest separating with signs - and _, they are not converted to% XX
There are several options. For example.
1) Set a fixed order of parameters and simply separate them with one of the symbols
/controller/action/red_big_square
2) Separate the parameters between themselves and the parameter name with different symbols
/controller/action/color-red_size-big_shape-square
Parsing this in the action is not difficult.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question