I am using ui-router and state provider to route the pages in my application. I have following states written in state provider.
.state('home', { url: '/home', templateUrl: 'public/msStream/stateFiles/stateHome.html', controller: 'stateHomeController' }) .state('home.profile', { url: '/home/profile', templateUrl: 'public/msStream/views/setting/ProfileBody.html' }) When I am in home state. /home is added in my URL, but when I switch to home.profile state using $state.go("home.profile), my URL is not changing to /home/profile but HTML page added in templateurl of the same state is getting rendered on front.
I tried adding /profile and /home/profile in the URL of the state but nothing seems to work. What am I missing here?