Fix routing issue for autocomplete