equal
deleted
inserted
replaced
205 request breadcrumbs for the last visited page. |
205 request breadcrumbs for the last visited page. |
206 """ |
206 """ |
207 if '__redirectpath' in self._cw.form: |
207 if '__redirectpath' in self._cw.form: |
208 # if redirect path was explicitly specified in the form, use it |
208 # if redirect path was explicitly specified in the form, use it |
209 path = self._cw.form['__redirectpath'] |
209 path = self._cw.form['__redirectpath'] |
210 url = self._cw.build_url(path, **newparams) |
210 url = self._cw.build_url(path) |
211 url = append_url_params(url, self._cw.form.get('__redirectparams')) |
211 url = append_url_params(url, self._cw.form.get('__redirectparams')) |
212 else: |
212 else: |
213 url = self._cw.last_visited_page() |
213 url = self._cw.last_visited_page() |
|
214 # The newparams must update the params in all cases |
|
215 url = self._cw.rebuild_url(url, **newparams) |
214 raise Redirect(url) |
216 raise Redirect(url) |
215 |
217 |
216 |
218 |
217 from cubicweb import set_log_methods |
219 from cubicweb import set_log_methods |
218 set_log_methods(Controller, LOGGER) |
220 set_log_methods(Controller, LOGGER) |