projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
switch default new page location to not be a subpage
[ikiwiki.git]
/
ikiwiki
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;