Fix the exitURL redirection when a survey is completed and the site uses a gateway url.

This commit is contained in:
Colin Kuskie 2009-02-04 02:22:21 +00:00
parent 787fe74ee1
commit b8b2a38ef5
3 changed files with 8 additions and 4 deletions

View file

@ -997,9 +997,12 @@ sub surveyEnd {
$url = "/";
}
}
$url = $self->session->url->gateway($url);
# $self->session->http->setRedirect($url);
return to_json( { "type", "forward", "url", $url } );
#$self->session->http->setRedirect($url);
#$self->session->http->setMimeType('application/json');
my $json = to_json( { "type", "forward", "url", $url } );
return $json;
} ## end sub surveyEnd
#-------------------------------------------------------------------

View file

@ -493,8 +493,8 @@ our $I18N = {
},
'Survey Exit URL help' => {
message => q|When the user finishes the surevey, they will be sent to this URL. Leave blank if no special forwarding is required.|,
lastUpdated => 0,
message => q|When the user finishes the surevey, they will be sent to this URL. Leave blank if no special forwarding is required. The gateway setting from the config file will be automatically added to the URL for you.|,
lastUpdated => 1233714385,
},
'percentage label' => {