revert added missing base url
This commit is contained in:
Patrick 2025-07-12 16:02:54 +02:00
parent 2140aaf2f8
commit 6039d131f4
1 changed files with 3 additions and 4 deletions

View File

@ -3,8 +3,7 @@
import { untrack } from "svelte";
import { enhance } from "$app/forms";
import { page } from "$app/state";
import { base } from "$app/paths";
import { page } from "$app/state"
import type { RecordEntry } from "$lib/db_types"
import { MONTHS, toInt, padInt, parseDate, calculateDuration, weekday_of } from "$lib/util";
@ -264,13 +263,13 @@
<tr>
<td colspan="2" class="doc_action">
{#if document == null}
<form id="form_create_rec" method="POST" action="{base}/dokumente?/create_record">
<form id="form_create_rec" method="POST" action="/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={`${base}/dokumente/${document.path}`} target="_blank">
<form id="form_download" method="GET" action={`/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>