diff --git a/src/components/settings/General.vue b/src/components/settings/General.vue index 459bb8d5d..e987f717a 100644 --- a/src/components/settings/General.vue +++ b/src/components/settings/General.vue @@ -183,7 +183,8 @@ export default { this.saveSettings(); }, autoGetPrimaryBaseURL() { - this.settings.primaryBaseURL = location.protocol + "//" + location.host; + const basePath = document.querySelector("head base").getAttribute("href"); + this.settings.primaryBaseURL = location.protocol + "//" + location.host + basePath; }, }, };