Hi, I am using GWT and its standard way of supporting history through the History class. This is very convenient, but how can I remove the anchor part from the URL? For example:
My base URL:
http:
When using the application, I go to a place that adds a new story element.
In code:
History.newItem("funnygame");
As a result:
http://www.mysuperwebsite.com/myapp
I change the place again:
In code:
History.newItem("notsofunnygames");
As a result:
http://www.mysuperwebsite.com/myapp
Then I want to return to my homepage (http://www.mysuperwebsite.com/myapp).
What needs to be put in the code ?:
????
to return to:
http:
Is there a standard way that I can achieve my goal?
If I add something like this:
History.newItem("");
or
History.newItem(null);
url will become
http://www.mysuperwebsite.com/myapp
And this is not what I want, I need it without a harsh character.
Zalivaka
source share