pespantelis / vue-typeahead

:mag: Typeahead component for Vue.js
http://pespantelis.github.io/vue-typeahead
MIT License
517 stars 98 forks source link

Optional Preference to disable the appending of the trailing / in http url requests. #31

Closed EHackettTriCore closed 7 years ago

EHackettTriCore commented 8 years ago

The plugin works wonderfully however, in our environment, our api endpoints don't have trailing '/' in our urls. ATM I have to comment out the snippet that appends a trailing slash. You probably don't need those lines if you let the users decide whether or not to at a trailing forward slash.

if (this.src.substr(-1) !== '/') {
   this.src += '/'
}
Schw2iizer commented 7 years ago

I just realized I may have left a similar issue. I'll give this a shot.

Thanks!

Schw2iizer commented 7 years ago

I commented out that code and it doesn't have any affect on the trailing '/'. Did you do anything else? @EHackettTriCore

pespantelis commented 7 years ago

Hi guys and sorry for the delayed response!

I have already reverted these lines (4dc1536) to avoid related issues. I apologize for any inconvenient.

Thanks!