takes into account the search string on routes