I've set up my $stateProvider as follows:
app.config(function($stateProvider,$urlRouterProvider,$locationProvider, $httpProvider){ $stateProvider.state('localitySearch',{ url: '/venues/in/:cityName/:localityName/:localityId/', templateUrl: 'static/partials/localitysearch.html', controller: 'localitySearchCtrl' }); $urlRouterProvider.otherwise('/'); $locationProvider.html5Mode(true).hashPrefix('!'); $httpProvider.defaults.xsrfCookieName = 'csrftoken'; $httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken'; }); When I try to hit:
/venues/in/CityName/LocalityName/LocalityId/, it redirects to home page.
The same code works if use regular ngRoutes. Is there something I've missed that's preventing url redirection?
/!/venues/in/CityName/LocalityName/LocalityId/?!in my URLs.ui-routerand this the only url thats giving me issues.