Answer the question
In order to leave comments, you need to log in
How to add parameters to url of a certain kind?
Good afternoon!
It is necessary to complete the filter for restaurants, the Laravel 5.3 framework is used.
At the moment, the situation is as follows:
There is a page with all the restaurants in the city and checkboxes like: Chinese cuisine, French cuisine, parking availability, etc.
When the checkbox is updated, the parameters are passed to the server via ajax, which receives and updates the list of restaurants.
It is necessary to make sure that when filters are changed, the url (more precisely, the set of anchors) changes to something like the following:
site.ru/catalog#services=1,5,4&max_distance=800&sort_by=price
But the main thing is that when you access the same link, the filters are automatically applied (and set the appropriate checkboxes and values)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question