I have this pattern in my route.js
.state('organizations', {
url: '/companies/:options?/:keyvalue',
templateUrl: '../app/components/organizations/organization.html',
controller: 'OrganizationController',
controllerAs: 'organizationsCtrl'
})
And when I try access the URLs
/companies/
/companies/users
It works ok, but when I try
/companies/users/1
It redirects to the default view
// For any unmatched url, redirect to /dashboard
$urlRouterProvider.otherwise('/dashboard');
Anyone can help me to see what I am doing wrong? thanks!
?
in the url ?