Skip to content

Commit f8d73d1

Browse files
authored
fix (#640)
1 parent 4f3a64f commit f8d73d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/routes/settings/[...model]/+page.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<script lang="ts">
22
import { page } from "$app/stores";
3+
import { base } from "$app/paths";
4+
import { PUBLIC_ORIGIN } from "$env/static/public";
35
import type { BackendModel } from "$lib/server/models";
46
import { useSettingsStore } from "$lib/stores/settings";
57
import CopyToClipBoardBtn from "$lib/components/CopyToClipBoardBtn.svelte";
@@ -73,7 +75,7 @@
7375
</a>
7476
{/if}
7577
<CopyToClipBoardBtn
76-
value="{$page.url.origin}/?model={model.id}"
78+
value="{PUBLIC_ORIGIN || $page.url.origin}{base}?model={model.id}"
7779
classNames="!border-none !shadow-none !py-0 !px-1 !rounded-md"
7880
>
7981
<div class="flex items-center gap-1.5">

0 commit comments

Comments
 (0)