# How to automatically open tabs widget based on URL?

**URL:** https://forum.builder.io/t/how-to-automatically-open-tabs-widget-based-on-url/1672
**Category:** Technical Questions
**Created:** [February 2, 2022, 10:11pm UTC](https://forum.builder.io/t/how-to-automatically-open-tabs-widget-based-on-url/1672 "2022-02-02T22:11:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![luis.simon.realself](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@luis.simon.realself](https://forum.builder.io/u/luis.simon.realself)
#### Post date: [February 2, 2022, 10:11pm UTC](https://forum.builder.io/t/how-to-automatically-open-tabs-widget-based-on-url/1672/1 "2022-02-02T22:11:13Z")

</div>

**What are you trying to accomplish**  
Hey team, we’ve installed the tabs widget. We worked out a way to open a specific tab based on a query param (i.e. ?utm\_activeTab=3).

However, we wanted to ask if you had a suggestion to accomplish this? and if there are plans to enable a designer friendly approach rather than having to add data bindings.

We created a data bind for the tabs default active tab: `Number(new URLSearchParams(window.location.search).get("utm_activeTab"))`

Thanks.

---

<div class="post-metadata">

### Author: ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)
#### Post date: [February 3, 2022, 3:13pm UTC](https://forum.builder.io/t/how-to-automatically-open-tabs-widget-based-on-url/1672/2 "2022-02-03T15:13:28Z")

</div>

Hi @luis.simon.realself!

To confirm, are you asking for an alternative way besides adding data bindings? If you use [custom components](https://www.builder.io/c/docs/custom-react-components), you can extend the tabs component and add this behavior. You can find the code for the tabs component [here](https://github.com/BuilderIO/builder/blob/%40builder.io/widgets%401.2.19-alpha.1/packages/widgets/src/components/Tabs.tsx). You’re welcome to submit this feature request to [https://ideas.builder.io/](https://ideas.builder.io/) as well where your team and other Builder users can upvote your idea!
