Browse Source
This patch is a fresh attempt at redirecting back to search results after logging in on opac-search.pl To test: - Perform an OPAC search - Login on opac-search.pl with the search results displayed - The page is redirected to opac-user.pl - Log out - Apply the patch - Perform a new OPAC search - Note the URL query string - Login on opac-search.pl with the search results displayed - The opac-search.pl page should be displayed with the correct query string and the page should indicate a logged in status Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Followed the test plan and the patch works. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>18.11.x
Lee Jamison
6 years ago
committed by
Nick Clemens
4 changed files with 24 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
if (window.location.href.indexOf("opac-search.pl") > -1) { |
|||
|
|||
// extract search params
|
|||
var searchUrl = location.href; |
|||
var searchParams = searchUrl.substring(searchUrl.indexOf("?")+1); |
|||
|
|||
// store search params in loginModal to pass back on redirect
|
|||
var query = document.getElementById("has-search-query"); |
|||
query.value = searchParams; |
|||
} |
Loading…
Reference in new issue