If you are you asking if you can do this {{=A('go to xyz page',_href='/admin/default/design/myapp')}}
or {{=A('go to xyz page',_href=URL(r=request,f='design' args='myapp'))}} the answer is yes. But I am not completely sure I understand the question. Massimo On Mar 1, 3:15 pm, ctalley <ctal...@caci.com> wrote: > Is it possible to do this... > > <a href='/admin/default/design/myapp'>go to xyz page</a> > > ...which yields this URL... > > http://127.0.0.1:8000/admin/default/design/myapp > > ...using an HTML helper, like this... > > {{=A('go to xyz page',_href=URL(r=request,f='/admin/default/design/ > myapp'))}} > > ...which yields this URL... > > http://127.0.0.1:8000/current_app/current_controller//admin/default/d... > > Notice the first statement creates a link to the specified path. The > second statement, using the helper, automatically prepends / > current_app/current_controller/ to the URL. In other words, can the > helper support an absolute path vs. a relative path? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---