I am currently working on a collaborative project and me and another developer are having trouble deciding on wether to keep the user on the edit product page after editing the product or redirecting the user back to the product list.
The first implementation would always keep the user on the edit product page unless he clicks back. Both success messages or a potential error message would show on the edit product page after saving.
The other implementation would redirect the user to the list of products and show a success message if successful or if there is an error it would keep the user on the edit product page and display the error.
Which method would be the best and most logical implementation?
Could the answer vary depending on how often products are edited and if so, why?
Please note that I am using product as an example here, I believe this is still relevant when editing other things such as pages in a cms system for example.