--- a/web/request.py Tue May 14 00:36:43 2013 +0200
+++ b/web/request.py Fri Jun 14 13:39:49 2013 +0200
@@ -731,6 +731,12 @@
if '__message' in kwargs:
msg = kwargs.pop('__message')
kwargs['_cwmsgid'] = self.set_redirect_message(msg)
+ if not args:
+ method = 'view'
+ if (self.from_controller() == 'view'
+ and not '_restpath' in kwargs):
+ method = self.relative_path(includeparams=False) or 'view'
+ args = (method,)
return super(CubicWebRequestBase, self).build_url(*args, **kwargs)
def url(self, includeparams=True):