Change the behaviour on new half-automated page creation

/!\ This is more a request about changing things in this Wiki.

What we want:

What is the problem?

(!) This is easily solved by just logging in. Then you can easily subscribe to that bug page and also find it in your trail.

The problem is caused by newpage action, which uses backto=page parameter for new pages. I don't remember I chose this behavior when the action was written, but it seems wrong most of the times. When you create a page you want to return to the page, not to the page where new page macro was on.

Fix:

--- newpage.py  Thu Oct 20 01:05:38 2005
+++ newpage-fix.py      Sun Feb  5 18:18:42 2006
@@ -80,7 +80,7 @@
             # Redirect to new page using edit action. No error checking
             # is needed because it is done later in new request.
             pagename = self.pagename
-            query = {'action': 'edit', 'backto': self.referrer}
+            query = {'action': 'edit'}
 
             template = self.request.form.get('template', [''])[0]
             if template:

If the feature is needed, it can be added as another parameter to NewPage macro. -- NirSoffer 2006-02-05 16:20:50


CategoryFeatureRequest

MoinMoin: FeatureRequests/MoinMoinWiki:BehaviourOnNewFeatureOrBug (last edited 2007-10-29 19:20:32 by localhost)