Refreshing search redirects to root url