We need to know what code are you using to store the url at the "carrier" table. The URL function (in case you are using it) builds relative urls with the request data. However, you can customize it forcing an absolute url with the host kwarg. See the book for examples www.web2py.com/book or the function signature with examples here:
http://www.web2py.com/examples/static/epydoc/web2py.gluon.html-module.html#URL And as expected, you can always build your own url string and pass it to the db record update or insert command. On Tuesday, May 1, 2012 2:51:29 PM UTC-3, zounds wrote: > > I have this in my db.py: > > db.define_table('carrier', > Field('name',), > Field('url',), > format='%(name)s') > > db.define_table('shipment', > Field('shipment_id', represent=lambda value,row: \ > A(value, _href=(row.carrier.url + value, ))), > Field('carrier', db.carrier)) > > The shipment_id link is pointing to ' > http://127.0.0.1:8000/tracker/default/www.bing.com/search?q=trumpet'. > How can I make it just 'www.bing.com/search?q=trumpet'. > >

