I am using ui-router for routing in my angular SPA. I have use case where one can reach to View(lets say View A) through route 1 or route 2. If user clicks on a button in View A, depending on from which route user had come to this view, need to perform different action (may be redirect to route 3(if from route1) route 4(if from route 2). Whats the best way to achieve this?I am using ui-router for routing in my angular