From 5e7124f340ffd61a85fe7aa3758c591d670183c4 Mon Sep 17 00:00:00 2001 From: Lee Jamison Date: Fri, 19 Aug 2016 15:26:57 -0400 Subject: [PATCH] Bug 17153: Logging in from catalog or EDS search redirects back to results --- opac/opac-user.pl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 8f23a3f..e2ab387 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -357,11 +357,9 @@ $template->param( ); -if ($ENV{HTTP_REFERER} =~ /opac-search.pl/ || $ENV{HTTP_REFERER} =~ /eds-search.pl/) { - #print redirect(referer()); - #print "Location: $ENV{HTTP_REFERER}\n\n"; - output_with_redirect($query, $ENV{HTTP_REFERER}, $cookie); +if ( !$ENV{HTTP_REFERER} =~ /opac-search.pl/ || !$ENV{HTTP_REFERER} =~ /eds-search.pl/ ) { + output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; } else { - output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; + output_with_redirect( $query, $ENV{HTTP_REFERER}, $cookie ); } \ No newline at end of file -- 2.1.4