diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-09-21 18:23:33 +0100 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-09-21 18:26:48 +0100 |
commit | 97e3263ad11885c112767393cd6659c85810947a (patch) | |
tree | 85bb3bf5428596c4e4abeeeb02af9cced723a580 /IkiWiki | |
parent | e73987b01da90374aaaba063e5a36ba61e90aa5f (diff) |
poll: Use urlto to produce redirection URLs, avoiding mentions of index.html
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/poll.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/poll.pm b/IkiWiki/Plugin/poll.pm index 35717c85f..84b02682e 100644 --- a/IkiWiki/Plugin/poll.pm +++ b/IkiWiki/Plugin/poll.pm @@ -102,7 +102,7 @@ sub sessioncgi ($$) { #{{{ my $oldchoice=$session->param($choice_param); if (defined $oldchoice && $oldchoice eq $choice) { # Same vote; no-op. - IkiWiki::redirect($cgi, "$config{url}/".htmlpage($page)); + IkiWiki::redirect($cgi, urlto($page, undef, 1); exit; } @@ -149,7 +149,7 @@ sub sessioncgi ($$) { #{{{ error($@) if $@; my $cookie = CGI::Cookie->new(-name=> $session->name, -value=> $session->id); print $cgi->redirect(-cookie => $cookie, - -url => "$config{url}/".htmlpage($page)); + -url => urlto($page, undef, 1)); exit; } } #}}} |