+ my $postvote=urlto($page);
+ if (defined $cgi->param('postlink') && length $cgi->param('postlink')) {
+ $postvote=urlto(bestlink($page, $cgi->param('postlink')));
+ }
+ elsif (defined $cgi->param('posttrail') && length $cgi->param('posttrail')) {
+ my $trailname=bestlink($page, $cgi->param('posttrail'));
+ my $trailnext=$pagestate{$page}{trail}{item}{$trailname}[1];
+ if (defined $trailnext) {
+ $postvote=urlto($trailnext);
+ }
+ }
+