Skip to content

Commit fc8d3f0

Browse files
committed
fix(bibliography-entry): Update bibliography links to use base path
1 parent e932ea8 commit fc8d3f0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/src/lib/components/BibliographyEntry.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script>
2+
import { base } from '$app/paths';
3+
24
/** @type {{
35
entry: {
46
type?: string;
@@ -19,7 +21,7 @@
1921

2022
{#if entry.citation}
2123
{#if entry.ptr?.target}
22-
<a href={`/bibliography/${entry.ptr.target.split('/').at(-1)}`}>{@html entry.citation}</a
24+
<a href={`${base}/bibliography/${entry.ptr.target.split('/').at(-1)}`}>{@html entry.citation}</a
2325
>{#if entry.citedRange},{:else}.{/if}
2426
{:else}
2527
{@html entry.citation}{#if entry.citedRange},{:else}.{/if}

0 commit comments

Comments
 (0)