On Wednesday, September 3, 2014 3:47:14 PM UTC+2, Ronan Quillevere wrote:
As you said when you change what is behind the # inside your url you do not reload the page. This is the default behavior of anchors. http://www.hypergurl.com/anchors.html
GWT and many other frameworks use that trick to create bookmarkable url and handling history without having to reload the whole page in a single page application.If you remove the hash your browser will see a new resource and will make a new query. There is no way to remove the # from your GWT app without having to reload the whole page.
Actually, yes, there is: pushState / onpopstate. http://caniuse.com/#feat=history (what Joseph called "HTML5 PushState API" in his message)
That however means replacing your use of com.google.gwt.user.client.History with something else. If you're using GWT Places, it's easy though: https://gist.github.com/tbroyer/1883821
On Wednesday, September 3, 2014 3:49:23 PM UTC+2, Ronan Quillevere wrote:
Now you can maybe create a servlet redirecting fromlwww.abc.com/question/
. to the url with # ?10245857
FWIW, that's what groups.google.com does; and it has "link" actions in menus to give you the link to share.
The advantage of this is that if your app needs authentication, redirects to the login form will preserve the original target URL.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment