How to redirect same path of different routes ?
As per below code, It will call the resolve method when route is '/auth/:token'. How I can modify the below code to call the resolve also when route is '/auth/:token/abc' or '/auth/:token/abc/bcd' or '/auth/:token/abc/dvf/ghj'.
Is there any way to implement this ? (I don't want to create multiple states or route for this)
.state "app.link_login",
url: "/auth/:token"
template: "<ui-view/>"
resolve:
authRedirect: ($state, $rootScope, $stateParams, TalentAuth)->
talentAuth = new TalentAuth
talentAuth.signViaToken($stateParams).then((data)->
$rootScope.$emit 'auth:login-success'
$state.go('app.inside.jobapps.overview')
,(error) ->
$state.go('app.signIn')
)