In my main.html I have a button. It navigates to page2
<a class="ui orange massive button" ui-sref="page2">Go To Page2</a>
and the url is
localhost:3000/class/53c7d1f9f25079bc0f77494c/main/page2
In page2.html, I have a button. It navigates to main page.
<a class="ui black button" ui-sref="main" ui-sref-opts="{reload: true}">Go To Main</a>
But the url remains to be
localhost:3000/class/53c7d1f9f25079bc0f77494c/main/page2
My state.js file
.state("main", {
url: '',
controller: 'controller.class.main',
template: templates.main,
})
.state("reschedule-match", {
url: '/page2',
controller: 'controller.class.page2',
template: templates.page2,
})
Navigations are successful. But,why does this not changing back to url '' and hence localhost:3000/class/53c7d1f9f25079bc0f77494c/main ?
Someone please let me know the solution. Thanks.