Filter depending on clicking in another page

Hi everyone,

i need hel/suggestion from you. What i basically want to do, is what sites like booking/tripadvisor do on their home page.

They have a page where u have a list of all the hotels on their database, and many filters you can use.
In their home page, they have links, that bring you to the ‘‘database page’’, and once you get there, the database is already filtered depending on the button you clicked on the home page.

Let’s make an example. Here below is the tripadvisor homepage.

Once you click, for instance, on POPULAR DESTINATIONS > VENICE,
you land on the database page already filtered, showing only hotels in venice.

How can i get something like that? any idea?

ps. i already have the ‘‘database’’ page on my website, with some filters as well.

Thank you in advance

Andrea

Hi,
You can use query params with wixLocation.to method.
In the target page you can use setFilter method to show the wanted items.
Foe more information:

Good luck!
Roi.