but in beforeSend, we assure that the urls will be different (because of the type parameter). Or does typeahead not swallow this?

In any case, a comment would be helpful here.