Hello,

I want to grab the actual url not just relative, request.url give me the 
relative url. I thought of this :

<strong>{{=T('To reproduce this report copy this link :')}}</strong>
<a href="{{request.url}}">{{=URL(request.url, scheme=True)}}</a>

But request.url already have app include and controller that get duplicated 
by scheme=True...

It maybe a bad idea... But it could be usefull to have 
URL(url='http://...', scheme=True)

So, I can retrieve the complete url like this : URL(url=request.url, 
scheme=True)

Or, maybe simpler : request.url_with_scheme

I work around, like this :

URL(c=request.controller, args=request.args, vars=request.vars, scheme=True)

Thanks

Richard

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to