There is this well-known problem that browsers don't put Ajax request in the request history and cause problems for bookmarkability, forward/back button, and refresh.
Also, there is a common solution to that problem that appends the hash symbol # and some additional parameters to the URL by using Javascript window.location.hash = ...
.
In this question a basic solution to this problem is proposed, for example.
=> My question is if such a solution has been integrated in Wicket, so that existing Wicket facilities are used and no custom Javascript had to be added. If not, I'd be interested in how this could be done.
Such a solution had to answer the question what should be put after the hash.
I like the idea that the bookmarkable URL that (in the non-Ajax case) were in front of the hash could be put behind it. For example, when you are on http://host/catalog
and reach a page http://host/product/xyz
the Ajax-triggered URL would be
http://host/catalog#/product/xyz
.
Then it would be easy to write an onload
handler that checks for the # and does a redirect to the URL after the hash.