Splash › Forums › Rewrite Users › Redirect from Java code to external URL
Tagged: externalcontext, jsf, redirect, rewrite
This topic contains 2 replies, has 2 voices, and was last updated by Christian Kaltepoth 3 years, 6 months ago.
I’m using Rewrite in latest version.
I want to redirect from Java code:
redirectUrl is in this case PayPal address: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_ap-payment&paykey=EXAMPLE_KEY“.
Problem is in final URL, my browser is redirected on http://MY_SERVER_IP:PORT/myapp/www.sandbox.paypal.jsf?cid=4&cmd=_ap-payment&paykey=EXAMPLE_KEY
In Rewrite rules, I use only simple rules like:
Where is the problem?
How can I redirect user to external URL without rewriting url?
Hmmm. Looks like a bug to me. Could you perhaps open a ticket for that?
If you could provide a minimal sample app to reproduce this issue, it would be a great help.
So you are using Rewrite 2.0.5.Final, correct?
As a workaround you could try to use HttpServletReponse.sendRedirect() instead:
HttpServletResponse response =
You must be logged in to reply to this topic.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!