URL param is persisting on tab switch

I have a conversations tab, and when you select a conversation it adds the message ID to the URL. If i navigate to a different tab and then back to the Conversations tab to view my conversations, the message ID is still in the URL and I am unable to see the list view of my conversations.

I’ve tried the following approaches:

  1. Add a leave event to remove the state param.
  2. $location.search(‘conversationId’, null);

Neither have worked. How can I have make sure that the tab always routes to the same view and not a nested view (due to state params)?