From 9741a3f979eb65b59b32f04422410e206f48ed86 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 25 Dec 2010 13:32:57 -0400 Subject: inline: Force an absolute page location when the inline postform is used. There seems no need to allow selecting a location when creating a page this way; the user should always want it to appear in the inline whose form they submitted. --- IkiWiki/Plugin/inline.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index e8e71e552..7c5da7343 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -128,7 +128,7 @@ sub sessioncgi ($$) { $add=1 unless length $add; $add++; } - $q->param('page', $page.$add); + $q->param('page', "/$from/$page$add"); # now go create the page $q->param('do', 'create'); # make sure the editpage plugin is loaded -- cgit v1.2.3