fix autoGetPrimaryBaseURL

This commit is contained in:
Jakub Blažej 2021-12-24 12:26:49 +01:00
parent 35c428b280
commit 9a405b5773

View file

@ -183,7 +183,8 @@ export default {
this.saveSettings(); this.saveSettings();
}, },
autoGetPrimaryBaseURL() { autoGetPrimaryBaseURL() {
this.settings.primaryBaseURL = location.protocol + "//" + location.host; const basePath = document.querySelector("head base").getAttribute("href");
this.settings.primaryBaseURL = location.protocol + "//" + location.host + basePath;
}, },
}, },
}; };