Splash › Forums › PrettyFaces Users › Cannot get URL param on facebook redirect › Re: Cannot get URL param on facebook redirect
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:
will be redirected to:
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
If you find our tools useful, please consider making a donation to help us stay online and building software!