Comment 2 for bug 125573

Revision history for this message
Anand Chitipothu (anandology) wrote : Re: [Bug 125573] editing an older version of a page keeps you at that version of the page

On 12-Jul-07, at 9:37 PM, Aaron Swartz wrote:

> Public bug reported:
>
> 1. Visit a page like: /foo?m=edit&v=16
> 2. Change something.
> 3. Hit save.
>
> Result: You're redirected to /foo?v=16 and the page appears to have
> not
> changed.

I think changequery should clear the existing query when an optional
argument clear=True.

def changequery(_clear=False, **kw): ...

or

def changequery(query=None, **kw):
     if query is None: query = web.input(_method='GET')
     ....

changequery({}, m=None)