Update link URL in QuickLinkCard

This commit is contained in:
Fred Boniface 2024-07-07 10:02:37 +01:00
parent 91d523e372
commit 9ad046dd9f

View File

@ -21,9 +21,9 @@
<div class="quick-links"> <div class="quick-links">
{#each $ql as link} {#each $ql as link}
{#if link.length === 3} {#if link.length === 3}
<LinkButton text={link.toUpperCase()} link={"#null"} /> <LinkButton text={link.toUpperCase()} link={`/ldb?station=${link.toLowerCase()}`} />
{:else if link.length === 4} {:else if link.length === 4}
<LinkButton text={link.toUpperCase()} link={"#null"} /> <LinkButton text={link.toUpperCase()} link={`/train?headcode=${link.toLowerCase()}`} />
{/if} {/if}
{/each} {/each}
</div> </div>