diff --git a/src/bloodhound/transport.js b/src/bloodhound/transport.js index b5c16dabf9..9504f69b5e 100644 --- a/src/bloodhound/transport.js +++ b/src/bloodhound/transport.js @@ -47,7 +47,10 @@ var Transport = (function() { _fingerprint: function fingerprint(o) { o = o || {}; - return o.url + o.type + $.param(o.data || {}); + //$.param(o.data || {}) crashes because it does not expect a single string value. + //if o.data is string no need to call param + + return o.url + o.type + (o.data &&_.isString(o.data) ? o.data : $.param(o.data || {})); }, _get: function(o, cb) {