diff --git a/CHANGELOG b/CHANGELOG index 1f4d8ff063979032377a702ff520381020d46958..079e3eb4c89fe8fd915e28bcfc50911e927eb7dd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,13 +2,17 @@ Changelog ========= -0.3.4 (Unreleased) +0.3.5 (Unreleased) ------------------ +0.3.4 (2018-01-07) +------------------ +- Fixed wrong URL construction in ajax call -0.3.4 (2018-01-07) + +0.3.3 (2018-01-07) ------------------ - Users can now create their own dynamic radios (#51) diff --git a/api/funkwhale_api/__init__.py b/api/funkwhale_api/__init__.py index dda944964c72bcb95ccf7cffb0851051174002dc..7efdd7ff91fc356aca692a1b7c3d99db971f1bd6 100644 --- a/api/funkwhale_api/__init__.py +++ b/api/funkwhale_api/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = '0.3.3' +__version__ = '0.3.4' __version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')]) diff --git a/front/src/components/library/radios/Filter.vue b/front/src/components/library/radios/Filter.vue index dd170d8b3104da08e4fbd3b93091182fe4a3a2a4..7ed5aa494d64a7d5a9dcff6518c4267a93700dc2 100644 --- a/front/src/components/library/radios/Filter.vue +++ b/front/src/components/library/radios/Filter.vue @@ -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