On Thursday, February 15, 2018 at 4:05:32 PM UTC-8, nethu...@gmail.com 
wrote:
>
> Hello community. I need to support some legacy URLs in a web2py 
> application. I am able to do this using routes_in and routes_out, but it 
> fails when the URL contains a question mark:
>
> routes_in = [
>     ("/index?lang=en", "myapp/default/index_en")
> ]
>
> The URL is not mapped at all. My attempt to scape it didn't work neither:
>
> routes_in = [
>     (r"/index\?lang=en", "myapp/default/index_en")
> ]
>
> Any suggestions?
>
> Thanks in advance!
>


Aren't those available in request.args[] rather than being left in the 
URL?  That is, some parsing of the URL is done before this point.

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to