web/action.py
changeset 3460 e4843535db25
parent 3451 6b46d73823f5
child 4252 6c4f109c2b03
--- a/web/action.py	Thu Sep 24 00:23:32 2009 +0200
+++ b/web/action.py	Thu Sep 24 00:24:21 2009 +0200
@@ -91,7 +91,7 @@
     def url(self):
         current_entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
         linkto = '%s:%s:%s' % (self.rtype, current_entity.eid, target(self))
-        return self.build_url('add/%s' % self.etype, __linkto=linkto,
-                              __redirectpath=current_entity.rest_path(), # should not be url quoted!
-                              __redirectvid=self._cw.form.get('__redirectvid', ''))
+        return self._cw.build_url('add/%s' % self.etype, __linkto=linkto,
+                                  __redirectpath=current_entity.rest_path(), # should not be url quoted!
+                                  __redirectvid=self._cw.form.get('__redirectvid', ''))