Imagine having this code in your main HTML file:
<body ng-app="app" ng-controller="session as vmSession">
...
<!-- Modal content goes here -->
</body>
Inside the modal, you have a link:
<a ui-sref="siteManagement({ site: vmSession.user.site._id })" ng-click="$dismiss()">Example</a>
However, the link does not navigate to the correct page. Instead, it redirects to the root siteManagement
page instead of the user-specific one.
I've observed that the modal window is assigned an ng-isolate-scope
class. Could this be causing the issue?