GWT MVP with Places & Activities: how to remove the trailing hash in default place?

StackOverflow https://stackoverflow.com/questions/22148952

  •  19-10-2022
  •  | 
  •  

Question

Is there a way to remove the trailing hash in default place?

When user navigates to default place, the browser url is like: http://myexample.com#, is there a way to remove the last #, as it may cause problem in my app(go to a page with # at the end will force the page scroll to top, which is not what I expect).

Also I think this behavior is not consistent: in other places other than default, the behavior is just fine.

No correct solution

OTHER TIPS

If you use standard Activities and Places pattern, with Tokenizers, you can set a space as a token to your default place. I have not tried it, but I think it would prevent the scrolling.

placeHistoryHandler.register(placeController, eventBus, new DefaultPlace(" "));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top