summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xikiwiki1
1 files changed, 1 insertions, 0 deletions
diff --git a/ikiwiki b/ikiwiki
index b57611b66..37000b3bf 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -610,6 +610,7 @@ sub cgi () {
$default_loc="$from/$page";
while (length $from) {
push @page_locs, "$from/$page";
+ $from=dirname($from);
}
push @page_locs, $page;
}