-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Milestone
Description
If the url contains a trailing slash the state routing does not recognize the url and transition to the correct state.
For example, if you define the following state:
$stateProvider
.state('contacts', {
url: '/contacts',
templateUrl: '/contacts.html',
controller: 'ContactsController'
});
When you go to #/contacts it routes to the 'contacts' state correctly, however if you go to #/contacts/ the route is not recognized.
The only workaround I have found is to define a second route which contains the trailing slash with a different name but that is quite cumbersome to have to do for every single state in an application.
Thanks!