Fix shunting bug causing mis-redirects in search form on homepage