Suppose a GWT app goes to #a then #b then #a then the user presses back and I detect #b in the history.
Now I get a history event “#a”. Is there any way to tell if the user pressed forward or back?
I might care because the page for #a might be a form and I might remember in memory that the second #a has some unsaved data type in the form while the first #a has not!
Thoughts?
No, that’s technically not possible.
(you could use the HTML5 History API –
pushStateandonpopstate– but GWT has no built-in support)