From 9a405b5773ef04ce0a806264140e9c0aeda3cdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bla=C5=BEej?= Date: Fri, 24 Dec 2021 12:26:49 +0100 Subject: [PATCH] fix autoGetPrimaryBaseURL --- src/components/settings/General.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }, }, };