I have a list webpart view on a page. On edit when I am trying to delete the item, it takes me to the list allaspx page. But I want it to navigate to a different page. When I changed the save button source url then after delete it is taking me to the home page.
Try to update the source url parameter.
Sample script:
window.history.pushState('page2', 'Title', 'pageurl?Source=targeturl');