Instead of:
http://server/app/index.html#index?redirect=<encoded original
URL>
Try:
http://server/app/index.html?redirect=<encoded original URL>#index
I also ran into that problem until I realized I was placing the anchor
before the parameters.
On Jul 13, 3:20 pm, Martin <[email protected]> wrote:
> Hello
>
> In my application, if anonymous user directly visits protectedpage,
> then the application redirects him to the loginpageand the original
> URL is specified as aredirectparameter, example:
>
> loginpage:http://server/app/index.html#index?redirect=<encoded
> original URL>
>
> The redirection to the loginpageis 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?paren...
>
> "redirect" version of the URL:
>
> http://localhost:8080/gofer/gui/index.html#home?redirect=pipeline.htm...
>
> 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
-~----------~----~----~----~------~----~------~--~---