When I need to direct a user to a specific state, typically I would use the following code:
$state.go('state_name');
$state.transitionTo('state_name');
This method usually takes users to /state_name
. However, there is one particular state with a variable in the URL structure like /state_name/:variable
, and I am having trouble redirecting them to /state_name/whatever_I_choose
.
Does anyone have any insights on how to achieve this? I'm also utilizing ui-router
.