added missing base url

This commit is contained in:
Patrick 2025-07-11 17:45:09 +02:00
parent 51ed8da26c
commit 8df1c6ddc1
1 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,8 @@
import { untrack } from "svelte";
import { enhance } from "$app/forms";
import { page } from "$app/state"
import { page } from "$app/state";
import { base } from "$app/paths";
import type { RecordEntry } from "$lib/db_types"
import { MONTHS, toInt, padInt, parseDate, calculateDuration, weekday_of } from "$lib/util";
@ -263,13 +264,13 @@
<tr>
<td colspan="2" class="doc_action">
{#if document == null}
<form id="form_create_rec" method="POST" action="/dokumente?/create_record">
<form id="form_create_rec" method="POST" action="{base}/dokumente?/create_record">
<input type="hidden" name="month" value={month + 1} />
<input type="hidden" name="year" value={year} />
<button type="submit">Stundenliste erstellen</button>
</form>
{:else}
<form id="form_download" method="GET" action={`/dokumente/${document.path}`} target="_blank">
<form id="form_download" method="GET" action={`${base}/dokumente/${document.path}`} target="_blank">
<input type="hidden" name="month" value={month + 1} />
<input type="hidden" name="year" value={year} />
<button type="submit">Download</button>