I have the following code which works in production:
redirect_to "/mycontroller/index.html#&panel1-2?error=Invalid Member ID and/or Date of Birth"
In development(using Webrick), I am getting the following error message:
ERROR URI::InvalidURIError: bad URI(is not URI?): http://localhost:3000/mycontroller/index.html#&panel1-2?error=Invalid Member ID and/or Date of Birth
But if I copy and paste the supposedly bad URI in my browser address bar, it works!
I have tried various combinations of the error message text, and the spaces between words is causing it. I can make it work by using URI.escape or some other technique to escape the spaces, but then I would have to change hundreds of such occurrences in code which is working fine.
Thanks for taking the time to help.