diff --git a/changes/changelog.d/instance-url.bugfix b/changes/changelog.d/instance-url.bugfix new file mode 100644 index 000000000..356aa12a5 --- /dev/null +++ b/changes/changelog.d/instance-url.bugfix @@ -0,0 +1 @@ +Fixed front-end not contacting the proper path on the API diff --git a/front/src/App.vue b/front/src/App.vue index c8134a4a0..0bfdeb8b2 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -127,6 +127,9 @@ export default { if (!this.$store.state.instance.instanceUrl) { let defaultInstanceUrl = process.env.VUE_APP_INSTANCE_URL || this.$store.getters['instance/defaultUrl']() this.$store.commit('instance/instanceUrl', defaultInstanceUrl) + } else { + // needed to trigger initialization of axios + this.$store.commit('instance/instanceUrl', this.$store.state.instance.instanceUrl) } this.$store.dispatch('auth/check') this.$store.dispatch('instance/fetchSettings')