Since the sopac_prev_search_url() function was being inconsistently called with either the $override parameter or not, the return to search url sometimes simply linked to the current page. This patch fixes that, and also drastically simplifies the function. It also updates the templates to use the l() and t() functions where this url was being used.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhedstrom’s picture

FileSize
2.45 KB

An updated patch since passing urls into the l() function that start with a '/' results in broken links. This patch stores the drupal path rather than the REQUEST_URI into the session.