switch default new page location to not be a subpage

master
joey 2006-03-19 22:57:24 +00:00
parent 2f190b3aeb
commit 5604901eac
2 changed files with 3 additions and 1 deletions

View 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).

View File

@ -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;