From 66c6ec5ed90fae6a8b0e8abd9dd5900f09fc4716 Mon Sep 17 00:00:00 2001 From: Axel Date: Sun, 17 Mar 2024 19:45:05 +0100 Subject: [PATCH] Adding support for non-root base URL --- resources/js/app.js | 2 +- resources/views/homepage.blade.php | 2 +- resources/views/login.blade.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 4a7a2a0..4cf29a3 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -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); diff --git a/resources/views/homepage.blade.php b/resources/views/homepage.blade.php index 152af5a..f520cf8 100644 --- a/resources/views/homepage.blade.php +++ b/resources/views/homepage.blade.php @@ -77,7 +77,7 @@ redirectToBundle: function() { if (this.currentBundle != null) { - window.location.href = '/upload/'+this.currentBundle + window.location.href = BASE_URL+'/upload/'+this.currentBundle } }, diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php index dcec0c6..b73a6fb 100644 --- a/resources/views/login.blade.php +++ b/resources/views/login.blade.php @@ -41,7 +41,7 @@ }) .then( (response) => { if (response.data.result == true) { - window.location.href = '/' + window.location.href = BASE_URL+'/' } }) .catch( (error) => {