On a default search page, I have a login javascript that switches to a different search page after a successful login. However, if a user has already performed a search, I want that search string to carry over to the logged in page. In other words, how do I save my search string from one page to the next? Here is the current version of the script:
function customJavaScript() {
jQuery(document).ready(function() {
checkLogin();
});
}
function checkLogin() {
if(com_sirsi_ent_login.isLoggedIn!==false) {
window.location.assign("/client/employee/search/results?te=ILS&dt=list");
}
}