poll: Use urlto to produce redirection URLs, avoiding mentions of index.html
parent
e73987b01d
commit
97e3263ad1
|
@ -102,7 +102,7 @@ sub sessioncgi ($$) { #{{{
|
||||||
my $oldchoice=$session->param($choice_param);
|
my $oldchoice=$session->param($choice_param);
|
||||||
if (defined $oldchoice && $oldchoice eq $choice) {
|
if (defined $oldchoice && $oldchoice eq $choice) {
|
||||||
# Same vote; no-op.
|
# Same vote; no-op.
|
||||||
IkiWiki::redirect($cgi, "$config{url}/".htmlpage($page));
|
IkiWiki::redirect($cgi, urlto($page, undef, 1);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ sub sessioncgi ($$) { #{{{
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
my $cookie = CGI::Cookie->new(-name=> $session->name, -value=> $session->id);
|
my $cookie = CGI::Cookie->new(-name=> $session->name, -value=> $session->id);
|
||||||
print $cgi->redirect(-cookie => $cookie,
|
print $cgi->redirect(-cookie => $cookie,
|
||||||
-url => "$config{url}/".htmlpage($page));
|
-url => urlto($page, undef, 1));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
Loading…
Reference in New Issue