On Jan 13, 2012, at 7:50 AM, Anthony wrote:

> On Friday, January 13, 2012 10:31:04 AM UTC-5, Jonathan Lundell wrote:
> On Jan 13, 2012, at 7:22 AM, Web2Py Freak wrote:
> > ok i did request_uri and got None ?? i want the full url with tha
> > domain and args because i want to use it for the facebook like
> 
> It's possible that you need to enable routing to set request_uri (I'm not 
> sure).
> 
> Good point -- yes, looks like request_uri is only available with routing 
> enabled. Another alternative is request.url (though that doesn't include the 
> query string, which can be found in request.env.query_string). And as 
> Jonathan pointed out, URL(), without any arguments, should return the URL of 
> the current page (after rewrite).
> 

It does need argument, though; otherwise I don't think that args, vars or host 
will be included.

Reply via email to