Yarko, what I am saying is that URL() does not add the "http://
127.0.0.1:8000" prefix.

You can test it out for yourself to see what I mean.

On Jul 22, 2:09 pm, Yarko Tymciurak <[email protected]> wrote:
> The pattern for URL is:
>
> URL( application, controller, function, args, vars )
>
> if you pass a request variable, it will start from the info in request, and
> override what you've supplied with additional arguments.
>
> For example:
>
> URL(r = request)
>
> Will return the URL of the current request;.
>
> If it ishttp://localhost:8000/welcome/default/index, then
>
> URL( r=request, f=afterindex)
>
> will returnhttp://localhost:8000/welcome/default/afterindex
>
> On Wed, Jul 22, 2009 at 3:57 PM, Bottiger <[email protected]> wrote:
>
> > Let's say you simply want the URL for a page such as
>
> >http://127.0.0.1:8000/welcome/default/index
>
> > You can use URL(f='index') but it gives you a somewhat relative path.
>
> > /welcome/default/index
>
> > So what is the best way to go about adding thehttp://127.0.0.1:8000
> > prefix for the entire website?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to