I'm facing an issue with a link that performs two actions. Clicking on it opens a modal box through "ng-click", but it also transitions state using "ng-href".
The intention is for the modal box to open, but not for the state transition. However, I still need the URL in that state transition to remain unchanged.
My attempts to use $locationChangeStart to stop the state change have resulted in preventing the URL from updating, which is not ideal. After some research, I came across the option of "reloadOnSearch" as a potential solution. However, this does not seem applicable to target a specific link. Not all links on the page exhibit this behavior, others are standard links. Additionally, I am unsure of how to implement reloadOnSearch with ui-router.
The functionality I am trying to achieve is reminiscent of Pinterest's overlay feature with items. Upon clicking an item, a modal box appears while the URL changes, yet the main page remains unaffected. This enables users to share the URL with friends, who can access the direct item page instead of the overlay.
Currently, I am utilizing ui-router for my project, hopefully someone has encountered a similar situation and found a solution?