I am currently developing a web application that utilizes ui-router version 0.3.2 and Angular 1.5. I have encountered an issue with the back button functionality. When I click the back button, the URL updates to the correct state URL but the page does not reload or render. The controller for the new state (updated URL) is not being executed. Below is my state configuration:
$stateProvider
.state('home', {
url: '/',
reloadOnSearch: false,
templateUrl: 'homePage.html',
controller:'homeController'
})
... // Other state configurations
For instance, if I navigate from the 'home.overview.result.dashboard' state (URL -> localhost:12345/overview/doctype?abc&xyz&user&temp1&temp2) to the 'home.details.result.dashboard' state with URL localhost:12345/details/doctype?abc&xyz&user&temp1&temp2 and then hit the back button, the URL changes back to localhost:12345/overview/doctype?abc&xyz&user&temp1&temp2 without reloading or rendering the page.
I am aware of a potential solution to manually trigger a reload using this solution, but I am seeking a better approach that aligns with the ui-router framework. Is there anything missing in my state configuration or something I am doing wrong? Any assistance on this matter would be greatly appreciated. Thank you