# Issue deep linking to tabs

**URL:** <https://forum.ionicframework.com/t/issue-deep-linking-to-tabs/11144>\
**Category:** ionic-v1\
**Created:** [October 14, 2014, 3:57pm UTC](https://forum.ionicframework.com/t/issue-deep-linking-to-tabs/11144 "2014-10-14T15:57:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danda1man](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@danda1man](https://forum.ionicframework.com/u/danda1man)\
**Post date:** [October 14, 2014, 3:57pm UTC](https://forum.ionicframework.com/t/issue-deep-linking-to-tabs/11144/1 "2014-10-14T15:57:05Z")

</div>

I am having an issue with “deep” linking to the state of the 2nd tab. I put together a codepen that recreates my app, clicking the “Tabs” link on the left menu shows the issue where it starts loading the first tab immediately after the 2nd tab loads so it looks like it is just navigating to the first tab instead of the 2nd like it is supposed too. Any ideas on why this is happening?

[Demo](http://codepen.io/danda1man/pen/sDLjd)

---

<div class="post-metadata">

**Author:** ![israelidanny](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@israelidanny](https://forum.ionicframework.com/u/israelidanny)\
**Post date:** [October 25, 2014, 5:54pm UTC](https://forum.ionicframework.com/t/issue-deep-linking-to-tabs/11144/2 "2014-10-25T17:54:12Z")

</div>

I’m experiencing the same issue. Very annoying for a tabbed app! I’m trying to send users to the 2nd or 3rd tab from a notification and it always takes me to the 1st tab.

---

<div class="post-metadata">

**Author:** ![danda1man](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@danda1man](https://forum.ionicframework.com/u/danda1man)\
**Post date:** [November 1, 2014, 3:38am UTC](https://forum.ionicframework.com/t/issue-deep-linking-to-tabs/11144/3 "2014-11-01T03:38:17Z")

</div>

Figured it out, it happens in tabs because the tabs emit an event on change that triggers the ionic view service to go back a state. Since my history service is also going back they double trigger, hence I land in the root tab. I think there is something fundamentally wrong with my history service, but I haven’t figured out how to customize the ionic one to properly track my app flow yet. I will post back if I find a better answer.
