webpath = "test"
# if I use turbogears.url() in template files. works fine
http://test.com/test
# but when I use turbogears.url() in controller file. the webpath
become twice
http://test.com/test/test
# when I don't use turbogears.url() in controller file. set
turbogears.redirect("/") directly
http://test.com/test
So, what is the problem when I use turobgeats.url() in controller file?
OR, did I miss something? I think I'm confused about webpath.
Kevin
--
Kevin Dangoor
TurboGears / Zesty News
email: k...@blazingthings.com
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com
Maybe turbogears.url() should return a string-like object (instence of
a string subclass), so that you always know if a url is absolute or not.