mirror of
https://github.com/axeloz/filesharing.git
synced 2025-05-06 01:53:55 +02:00
Adding support for non-root base URL
This commit is contained in:
parent
9d71927485
commit
66c6ec5ed9
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ window.axios.interceptors.response.use(function (response) {
|
|||
|
||||
// Authenticated user
|
||||
if (error.response.status == 401) {
|
||||
window.location.href = '/'
|
||||
window.location.href = BASE_URL+'/'
|
||||
}
|
||||
else {
|
||||
return Promise.reject(error);
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
redirectToBundle: function() {
|
||||
if (this.currentBundle != null) {
|
||||
window.location.href = '/upload/'+this.currentBundle
|
||||
window.location.href = BASE_URL+'/upload/'+this.currentBundle
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
})
|
||||
.then( (response) => {
|
||||
if (response.data.result == true) {
|
||||
window.location.href = '/'
|
||||
window.location.href = BASE_URL+'/'
|
||||
}
|
||||
})
|
||||
.catch( (error) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue