# Create a link on home page to a filtered search results

**URL:** <https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247>\
**Category:** General\
**Created:** [December 7, 2023, 12:37am UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247 "2023-12-07T00:37:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mburlinson](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/mburlinson/32/1405_2.png) [@mburlinson](https://forum.finsweet.com/u/mburlinson)\
**Post date:** [December 7, 2023, 12:37am UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/1 "2023-12-07T00:37:06Z")

</div>

I have a button in the home page with a dynamic link to the “market” on the Project page that has a filter “Market”.

I found this article:

> [@Show Search Results on CMS Filter Page from a different page](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857):
>
> Im sure there is an easy solution for this, just having trouble executing. Jetboost uses [this solution](https://help.jetboost.io/article/45-show-search-results-on-different-page) which works pretty well however their filtering lacks in comparison to Finsweets. I am trying to replicate this using attributes. I want to get the initial search on the other page to add in the CMS filter field “\*”=“query” when the page loads but am not having any luck. Has anyone successfully done this?

But it seems overly complicated for a simple re-direct.

Here’s the share: [Webflow - Development Facilitators Incorporated](https://preview.webflow.com/preview/dfi-beta-color?utm_medium=preview_link&utm_source=designer&utm_content=dfi-beta-color&preview=fa0c48a3c226407e70409b5d1543e121&workflow=preview)

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [December 7, 2023, 1:47pm UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/2 "2023-12-07T13:47:08Z")

</div>

hey @mburlinson! If this filter will always be the same you can enable the `fs-cmsfilter-showquery` setting, perform a search on your target page, copy the url, and set this url to the button on your project page.

CMS Filter will load the list with the filters from the query applied to it

---

<div class="post-metadata">

**Author:** ![mburlinson](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/mburlinson/32/1405_2.png) [@mburlinson](https://forum.finsweet.com/u/mburlinson)\
**Post date:** [December 7, 2023, 7:14pm UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/3 "2023-12-07T19:14:27Z")

</div>

Need a little more info here. How do I instigate the showquery setting? I’m drawing a blank…

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [December 8, 2023, 12:55pm UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/4 "2023-12-08T12:55:34Z")

</div>

We have this option for CMS Filter that enables the Query Params. you can perform a search on the page and copy the url like this → [https://finsweet.com/attributes/cms-filter?countries=Spain&categories=Museum](https://finsweet.com/attributes/cms-filter?countries=Spain&categories=Museum)

 ![Screen Shot 2023-12-08 at 13.51.46](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/e/ed21434f77d0d17bc35482162398cf224e93e362.png)

You can paste this url to the button on the homepage to redirect users to the desired page with the list filtered.

---

<div class="post-metadata">

**Author:** ![mburlinson](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/mburlinson/32/1405_2.png) [@mburlinson](https://forum.finsweet.com/u/mburlinson)\
**Post date:** [December 8, 2023, 3:51pm UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/5 "2023-12-08T15:51:40Z")

</div>

OK. Got it setup and it works for one collection but not the other?

 ![Screenshot 2023-12-08 at 10.51.13 AM](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/a/a3a23b4acb6d30f967b5433b6d1945fa1adc4d44.jpeg)

---

<div class="post-metadata">

**Author:** ![mburlinson](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/mburlinson/32/1405_2.png) [@mburlinson](https://forum.finsweet.com/u/mburlinson)\
**Post date:** [December 8, 2023, 3:53pm UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/6 "2023-12-08T15:53:53Z")

</div>

The query works for Market but not for Service? The results for a Service redirect looks like this: It returns all values?

 ![Screenshot 2023-12-08 at 10.53.26 AM](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/8/869f28852548177e6d29a1d3cfefc93e8b31c85e.jpeg)

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [December 8, 2023, 6:04pm UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/7 "2023-12-08T18:04:54Z")

</div>

interesting, I have not seen this behavior before.

I see the layout is different on your read-only. Does this layout work as expected?

---

<div class="post-metadata">

**Author:** ![mburlinson](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/mburlinson/32/1405_2.png) [@mburlinson](https://forum.finsweet.com/u/mburlinson)\
**Post date:** [December 9, 2023, 6:21pm UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/8 "2023-12-09T18:21:42Z")

</div>

No. It’s throwing all of the filters instead of just the one in the copied URL: [Projects](https://www.solteszco.com/projects?services=Civil+Engineering)

It should just show the Civil Engineering filter.

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [December 11, 2023, 11:19am UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/9 "2023-12-11T11:19:56Z")

</div>

@mburlinson! I see you have added the query params script and attributes to the page, this is causing all the checkboxes to be added to the filters.

This script is not needed as CMS Filter can handle the query params natively. you can test by removing the script from the page, publishing and visiting the [Projects](https://www.solteszco.com/projects?markets=Data+Centers&services=Civil+Engineering) page link

---

<div class="post-metadata">

**Author:** ![mburlinson](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/mburlinson/32/1405_2.png) [@mburlinson](https://forum.finsweet.com/u/mburlinson)\
**Post date:** [December 11, 2023, 4:19pm UTC](https://forum.finsweet.com/t/create-a-link-on-home-page-to-a-filtered-search-results/2247/10 "2023-12-11T16:19:59Z")

</div>

Brilliant. Thank you!
