switch default new page location to not be a subpage
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 19 Mar 2006 22:57:24 +0000 (22:57 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 19 Mar 2006 22:57:24 +0000 (22:57 +0000)
basewiki/index.mdwn
ikiwiki

index ea78c23c9c8273be1226f44d494bd85236095eb3..d598c1f89a3d6d6be91e0558bc5c4679bdd6d35d 100644 (file)
@@ -2,4 +2,6 @@ Welcome to your new wiki.
 
 All wikis are supposed to have a [[SandBox]], so this one does too.
 
+----
+
 This wiki is powered by [ikiwiki](http://ikiwiki.kitenet.net).
diff --git a/ikiwiki b/ikiwiki
index 4d022284e5effe553d35427867f7a54a0b1fac25..38dae8f24782750cbb9c2f028196c08afe3ca8ad 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -1132,8 +1132,8 @@ sub cgi_editpage ($$) { #{{{
                                my $dir=$from."/";
                                $dir=~s![^/]+/$!!;
                                push @page_locs, $dir.$page;
+                               $best_loc=$dir.$page;
                                push @page_locs, "$from/$page";
-                               $best_loc="$from/$page";
                                while (length $dir) {
                                        $dir=~s![^/]+/$!!;
                                        push @page_locs, $dir.$page;