I think you should specify r=request, f=YOURFUNCTION, args=request.args(0)+'/'+str(ID)
request.args(0) = YOURTABLENAMESPECIFYINREQUEST Works for me! Richard On Fri, Nov 5, 2010 at 2:00 PM, villas <villa...@gmail.com> wrote: > Does SQLTABLE linkto work properly? > > If I use: > SQLTABLE(mytablerows,linkto=URL()) > > I get URLs like this: myapp/default/mytable/mytable/id > > Note the duplication of "mytable". > I have tried with URL('mytable') and URL(f='mytable'), but it's the > same. > > Of course I can work around the issue specifying: > db.mytable.id.represent = lambda id: > A('edit:',id,_href=URL(args=(id))) > > ...which gives the URL that I expect, but that is not the question > here... > > --D