web/views/actions.py
changeset 2715 acdaf780d4a6
parent 2657 de974465d381
parent 2701 afcc19c92072
child 2820 66b31686d92b
child 3219 be8cfc00ae04
--- 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)