Hello In my application, if anonymous user directly visits protected page, then the application redirects him to the login page and the original URL is specified as a redirect parameter, example:
login page: http://server/app/index.html#index?redirect=<encoded original URL> The redirection to the login page is done with this code: =============== String path = Location.getPath(); Location.replace("index.html#home?redirect=" + URL.encodeComponent(path.substring(path.lastIndexOf('/') + 1) + "#" + (IS_FIREFOX ? URL.encodeComponent(History.getToken()) : History.getToken()))); =============== After the user logs in, the "redirect" parameter is parsed by decoding the value part (<encoded original URL>) obtained from the History.getToken() call. Then Location.replace(redirect) is called to load the original URL. As you may noticed, the "redirect" parameter must be composed differently for Firefox (3.0 and 3.5). Tested also with the Chromium browser (Linux) and MSIE6. Opera doesn't work, but I haven't done any more tests for it. The problem was detected with this URL: http://localhost:8080/gofer/gui/pipeline.html#subchannel-modify?parentView=channel-modify%253Fuuid%253DXXX&parentUuid=YYY "redirect" version of the URL: http://localhost:8080/gofer/gui/index.html#home?redirect=pipeline.html%23subchannel-modify%3FparentView%3Dchannel-modify%253Fuuid%253DXXX%26parentUuid%3DYYY Is this a GWT bug? I think so :-). Should I report it? Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
