Attach single state to multiple navigation stacks

Let’s say I have two tabs:

  1. a list of users, each with an item that goes to a user profile
  2. list of teams that go to a list of users with an item that goes to a user profile

I’d like to use the same “state” within $stateProvider for both actions when I goto a user profile.

How can I accomplish this while using the same controllers, view templates, etc?

Right now, I’ve defined the user profile as a sub-state of tab1, so when I go to the user profile page from tab2, it jumps to tab1. I’d like to keep both navigation stack histories separate. How can I achieve this cleanly, without having to duplicate code?

Thanks!