Re: Cannot get URL param on facebook redirect

Splash Forums PrettyFaces Users Cannot get URL param on facebook redirect Re: Cannot get URL param on facebook redirect

#21154

I don’t know for sure if I fully understand your usecase, but my guess is that you are looking for something like this:

<rewrite match="/callback/(w+)?code=(w+)" substitute="/faces/Index.xhtml?shortURLcode=$1&code=$2" redirect="301" />

This way requests like this:

http://localhost/app/callback/abcdef?code=12345678

will be redirected to:

http://localhost/app/faces/Index.xhtml?shortURLcode=abcdef&code=12345678

This way you won’t have to change your existing code as the incoming request is automatically redirected to the URL with the two query parameters.

I hope this helps :)

Christian