I am developing a web app and want to make the back button in the browser more app like.
A user goes through these steps to post a message: List all messages -> read one message -> write reply -> gets back to message after reply
If the user then clicks the back button he will get back to the page were he wrote the reply. The prefered action would be to get back to the list of all the messages.
I've tried to use the HTML5 History API to remove the history of "write reply" and "read one message" after posting, but it doesn't seem to be possible to do that.
Are there any other way make it behave like I want, or should I just leave it as it is? I know you shouldn't mess with the back button, but I really think this would make it more logical.