We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f3a64f commit f8d73d1Copy full SHA for f8d73d1
src/routes/settings/[...model]/+page.svelte
@@ -1,5 +1,7 @@
1
<script lang="ts">
2
import { page } from "$app/stores";
3
+ import { base } from "$app/paths";
4
+ import { PUBLIC_ORIGIN } from "$env/static/public";
5
import type { BackendModel } from "$lib/server/models";
6
import { useSettingsStore } from "$lib/stores/settings";
7
import CopyToClipBoardBtn from "$lib/components/CopyToClipBoardBtn.svelte";
@@ -73,7 +75,7 @@
73
75
</a>
74
76
{/if}
77
<CopyToClipBoardBtn
- value="{$page.url.origin}/?model={model.id}"
78
+ value="{PUBLIC_ORIGIN || $page.url.origin}{base}?model={model.id}"
79
classNames="!border-none !shadow-none !py-0 !px-1 !rounded-md"
80
>
81
<div class="flex items-center gap-1.5">
0 commit comments