# Targeting a filtered view with variables in the url

**URL:** https://community.glideapps.com/t/targeting-a-filtered-view-with-variables-in-the-url/63508
**Category:** Ask for Help
**Created:** [July 5, 2023, 2:10am UTC](https://community.glideapps.com/t/targeting-a-filtered-view-with-variables-in-the-url/63508 "2023-07-05T02:10:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ovi](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@Ovi](https://community.glideapps.com/u/Ovi)
#### Post date: [July 5, 2023, 2:10am UTC](https://community.glideapps.com/t/targeting-a-filtered-view-with-variables-in-the-url/63508/1 "2023-07-05T02:10:21Z")

</div>

Can we target filtered views of collections by adding variables in the URL ?

For example, If I have on a page a collection with several filters available, is there a way to target that page and a filtered view of that collection by adding some variables inside the URL ?

Thanks.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [July 5, 2023, 2:15am UTC](https://community.glideapps.com/t/targeting-a-filtered-view-with-variables-in-the-url/63508/2 "2023-07-05T02:15:20Z")

</div>

Assuming that you’re using custom filtering, then yes I think that could be possible.  
You could use the [Get Part of URL](https://www.glideapps.com/plugins/url-parts) column to extract the query parameters, and then work those into your filtering logic. I’ve not actually tried this, but in theory I think it should work.

---

<div class="post-metadata">

### Author: ![Andrew\_Davies](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andrew_davies/32/41838_2.png) [@Andrew\_Davies](https://community.glideapps.com/u/Andrew_Davies)
#### Post date: [July 5, 2023, 7:32am UTC](https://community.glideapps.com/t/targeting-a-filtered-view-with-variables-in-the-url/63508/3 "2023-07-05T07:32:26Z")

</div>

I’m going to try this too. I’m after something like shared views in Airtable - whereby each view of that data has its own settings for which fields are shown, sorting, filtering and grouping etc.

Was planning on setting up a table with a name for each “view” - then a final field for the URL / link to the actual page - which would be set for each view.

But this would be better. I could have a field for each filter then use a template to generate the URL.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 5, 2023, 11:43pm UTC](https://community.glideapps.com/t/targeting-a-filtered-view-with-variables-in-the-url/63508/4 "2023-07-05T23:43:14Z")

</div>

But if the user navigates to another screen and go back, then I believe the URL will be stripped. So please be careful with that approach.
