Hello, I have followed the MVP structure while developing my project. Once I hit the site URL, the History Manager loads the module by inserting the default token to the history stack and then from there the user can redirect himself to any part of the application by changing the History token, which is basically the bit that comes after the pound symbol (#) in the URL
My problem is: I'm unable to redirect a user to a specific token without having to go through the default token and from there to anywhere I want. In other words, the URLs history usual follows this: http://domain#defaultToken and from there I can go to http://domain#page1 or http://domain#page2 without any problem. But if i want to go directly to http://domain#page1 i will be redirected to the default token which is http://domain#defaultToken... mainly due to this snippet of code: this.container = container; if ("".equals(History.getToken())) { History.newItem("defaultToken"); } else { History.fireCurrentHistoryState(); } So my question is: Is it possible to redirect a user to any part of the application without having to start from the defaultToken page? And can we pass in parameters using the URL only (i.e: how can the user hit the following link without errors?: http://domain#page3?param1=a¶m2=b) ? How those it work? To concertize the problem, I'm trying to implement an "activation" link that if once the user clicks on it he will activate his account given the userID and a encrypted code (i.e: http://domain#activate?userID=12&code=ht2oj34j2k5j6pk3 ) Any advice will do, Cheers, Mahmoud -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
