Before this, it only worked on the page load *before* form submission.
There's probably a more elegant solution that doesn't involve keeping
track of URIs, but this seems to me to work.
Problem relayed to me by Dale Rigney at Equinox, who helped reproduce
the issue and test a fix.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
$ctx->{sms_notify} = $cgi->param('sms_notify');
$ctx->{copy_id} = $cgi->param('copy_id');
$ctx->{query} = $cgi->param('query');
- $ctx->{origin} = $cgi->param('origin');
+ $ctx->{origin} = $cgi->param('origin') || $cgi->referer;
my $acn_results = $e->json_query({
select => {