Skip to content
Snippets Groups Projects
Verified Commit 04ae5c86 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed wrong URL construction in ajax call

parent cadf3f31
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,14 @@ Changelog
=========
0.3.4 (Unreleased)
0.3.6 (Unreleased)
------------------
0.3.5 (2018-01-07)
------------------
- Fixed wrong URL construction in ajax call
0.3.4 (2018-01-07)
......
......@@ -112,8 +112,9 @@ export default {
selector.push('.autocomplete')
settings.fields = f.autocomplete_fields
settings.minCharacters = 1
let backendUrl = config.BACKEND_URL || window.location.protocol + '//' + window.location.hostname + ':' + window.location.port
settings.apiSettings = {
url: config.BACKEND_URL + f.autocomplete + '?' + f.autocomplete_qs,
url: backendUrl + f.autocomplete + '?' + f.autocomplete_qs,
beforeXHR: function (xhrObject) {
xhrObject.setRequestHeader('Authorization', self.$store.getters['auth/header'])
return xhrObject
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment