--- a/web/views/actions.py Thu Aug 06 09:04:26 2009 +0200
+++ b/web/views/actions.py Thu Aug 06 09:51:52 2009 +0200
@@ -15,7 +15,7 @@
authenticated_user, match_user_groups, match_search_state,
has_permission, has_add_permission,
)
-from cubicweb.web import uicfg
+from cubicweb.web import uicfg, controller
from cubicweb.web.action import Action
from cubicweb.web.views import linksearch_select_url, vid_from_rset
from cubicweb.web.views.autoform import AutomaticEntityForm
@@ -112,8 +112,8 @@
def url(self):
params = self.req.form.copy()
- params.pop('vid', None)
- params.pop('__message', None)
+ for param in ('vid', '__message') + controller.NAV_FORM_PARAMETERS:
+ params.pop(param, None)
return self.build_url(self.req.relative_path(includeparams=False),
**params)