#1353188 by paulmckibben: Fixed issue with redirection to search results when apache_solr is used as the search engine