what about
<a href="{{request.url}}">
{{='%s://%s%s'%(request.env.wsgi_url_scheme,request.env.http_host,request.url)}}
</a>
?
Il giorno giovedì 26 settembre 2013 15:30:02 UTC+2, Richard ha scritto:
>
> The only one that seems to do the job is this one :
> request.env.http_referer
> But it only work in case the user clic on a link. If he copy and paste a
> link it didn't work... Maybe it requires that I combine different
> request.env.SOMETHING, didn't found the proper ingredients until now :)
>
> Richard
>
>
> On Wed, Sep 25, 2013 at 6:11 PM, Niphlod <[email protected]
> <javascript:>>wrote:
>
>> check also request.env . holds all the pieces, although scheme=True and
>> host=True usually cut the deal.
>>
>>
>> On Wednesday, September 25, 2013 8:46:00 PM UTC+2, Richard wrote:
>>>
>>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
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.