I have a need to change the URL without routing/changing the existing view.
Here is the use case:
User navigates to mysite.com/app#/items/add to add a new item. User then hits save. I would like for the page to stay on that view in case the user wishes to make more edits but I want the URL and history to change to mysite.com/app#/items/<new-id>.
Right now when it changes the hash fragment, it swaps the view with the same view and there is a "add" in the history, neither of which is desirable.
Is there any way to achieve my goal?
Thanks in advance for any help you may give me.
Here is the use case:
User navigates to mysite.com/app#/items/add to add a new item. User then hits save. I would like for the page to stay on that view in case the user wishes to make more edits but I want the URL and history to change to mysite.com/app#/items/<new-id>.
Right now when it changes the hash fragment, it swaps the view with the same view and there is a "add" in the history, neither of which is desirable.
Is there any way to achieve my goal?
Thanks in advance for any help you may give me.