Adding support for non-root base URL

This commit is contained in:
Axel 2024-03-17 19:45:05 +01:00
parent 9d71927485
commit 66c6ec5ed9
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ window.axios.interceptors.response.use(function (response) {
// Authenticated user // Authenticated user
if (error.response.status == 401) { if (error.response.status == 401) {
window.location.href = '/' window.location.href = BASE_URL+'/'
} }
else { else {
return Promise.reject(error); return Promise.reject(error);

View file

@ -77,7 +77,7 @@
redirectToBundle: function() { redirectToBundle: function() {
if (this.currentBundle != null) { if (this.currentBundle != null) {
window.location.href = '/upload/'+this.currentBundle window.location.href = BASE_URL+'/upload/'+this.currentBundle
} }
}, },

View file

@ -41,7 +41,7 @@
}) })
.then( (response) => { .then( (response) => {
if (response.data.result == true) { if (response.data.result == true) {
window.location.href = '/' window.location.href = BASE_URL+'/'
} }
}) })
.catch( (error) => { .catch( (error) => {