From 76f77f7bfed610f00d79d26c30de72c3e59f891e Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Thu, 7 Aug 2025 09:07:46 +0200 Subject: [PATCH 1/2] fix: invite link generation not accounting for baseURL --- components/Modal/Invite.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Modal/Invite.vue b/components/Modal/Invite.vue index 232114c..de842a2 100644 --- a/components/Modal/Invite.vue +++ b/components/Modal/Invite.vue @@ -40,7 +40,8 @@ function copyInvite(type: "link" | "code") { if (!invite.value) return; if (type == "link") { - const inviteUrl = URL.parse(`invite/${invite.value}`, `${window.location.protocol}//${window.location.host}`); + const runtimeConfig = useRuntimeConfig(); + const inviteUrl = URL.parse(`invite/${invite.value}`, `${window.location.protocol}//${window.location.host}${runtimeConfig.app.baseURL}`); if (inviteUrl) { navigator.clipboard.writeText(inviteUrl.href); } From 395dd6cf9b0957f7a37b703573b3f0b2a649a9e5 Mon Sep 17 00:00:00 2001 From: Temmie Date: Sat, 9 Aug 2025 12:42:33 +0200 Subject: [PATCH 2/2] fix: layout preview not working with a non-default baseurl --- components/Settings/AppSettings/Appearance.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/Settings/AppSettings/Appearance.vue b/components/Settings/AppSettings/Appearance.vue index 98c41f9..f6f40f4 100644 --- a/components/Settings/AppSettings/Appearance.vue +++ b/components/Settings/AppSettings/Appearance.vue @@ -34,7 +34,8 @@ {{ layout.displayName }} - + + @@ -60,8 +61,8 @@ import { settingSave, settingsLoad } from '#imports'; const runtimeConfig = useRuntimeConfig() const baseURL = runtimeConfig.app.baseURL; -const styleFolder = `${baseURL}themes/style` -const layoutFolder = `${baseURL}themes/layout` +const styleFolder = `${baseURL}/themes/style` +const layoutFolder = `${baseURL}/themes/layout` const timeFormatTextStrings = ["Auto", "12-Hour", "24-Hour"] @@ -115,6 +116,7 @@ async function parseTheme(url: string): Promise { break case "previewImageUrl": previewImageUrl = `${layoutFolder}/${lineArray[1].trim()}` + console.log(previewImageUrl) break } }