summaryrefslogtreecommitdiff
path: root/ikiwiki
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki')
-rwxr-xr-xikiwiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki b/ikiwiki
index 4d022284e..38dae8f24 100755
--- 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;