Quantcast
Viewing all articles
Browse latest Browse all 49229

URL param is persisting on tab switch

@alxvallejo wrote:

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)?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>