ugh, use subpages for discussion as a special case
parent
5604901eac
commit
d1cef7a6ab
9
ikiwiki
9
ikiwiki
|
@ -1131,8 +1131,15 @@ sub cgi_editpage ($$) { #{{{
|
||||||
else {
|
else {
|
||||||
my $dir=$from."/";
|
my $dir=$from."/";
|
||||||
$dir=~s![^/]+/$!!;
|
$dir=~s![^/]+/$!!;
|
||||||
|
|
||||||
|
if ($page eq 'discussion') {
|
||||||
|
$best_loc="$from/$page";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$best_loc=$dir.$page;
|
||||||
|
}
|
||||||
|
|
||||||
push @page_locs, $dir.$page;
|
push @page_locs, $dir.$page;
|
||||||
$best_loc=$dir.$page;
|
|
||||||
push @page_locs, "$from/$page";
|
push @page_locs, "$from/$page";
|
||||||
while (length $dir) {
|
while (length $dir) {
|
||||||
$dir=~s![^/]+/$!!;
|
$dir=~s![^/]+/$!!;
|
||||||
|
|
Loading…
Reference in New Issue