diff MoinMoin/macro/NewPage.py @ 3040:8608b258f8e6

bug fix of MoinMoinBugs/MoveAttachmentNotWorkingWithModPython (thanks to Boleslaw Kulbabinski) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 05 Feb 2008 21:22:56 +0100
parents 388204baf00f
children cd6cfc715261
line wrap: on
line diff
--- a/MoinMoin/macro/NewPage.py	Mon Feb 04 10:17:58 2008 +0100
+++ b/MoinMoin/macro/NewPage.py	Tue Feb 05 21:22:56 2008 +0100
@@ -92,7 +92,7 @@
 
         # TODO: better abstract this using the formatter
         html = [
-            u'<form class="macro" method="get" action=""><div>',
+            u'<form class="macro" method="get" action="%s/%s"><div>' % (self.request.getScriptname(), wikiutil.quoteWikinameURL(self.formatter.page.page_name)),
             u'<input type="hidden" name="action" value="newpage">',
             u'<input type="hidden" name="parent" value="%s">' % wikiutil.escape(parent, 1),
             u'<input type="hidden" name="template" value="%s">' % wikiutil.escape(template, 1),