fix: properly resolve dynamic urls

This commit is contained in:
2026-11-06 08:36:32 -05:00
parent eed65b754e
commit 892624f6ac
5 changed files with 20 additions and 20 deletions
@@ -34,7 +34,7 @@
{#if compact}
<a
href={resolve(`/${paste.id}`)}
href={resolve(`/[id]`, { id: paste.id })}
class="flex flex-col gap-1 rounded border border-neutral-700 bg-neutral-800 px-4 py-3 transition-colors duration-200 hover:bg-neutral-700 focus:ring-2 focus:ring-neutral-600 focus:outline-none"
>
<div class="flex w-full flex-row justify-between">
@@ -119,7 +119,7 @@
</a>
{:else}
<a
href={resolve(`/${paste.id}`)}
href={resolve(`/[id]`, { id: paste.id })}
class="flex flex-col gap-2 rounded border border-neutral-700 bg-neutral-800 px-5 py-4 transition-colors duration-200 hover:bg-neutral-700 focus:ring-2 focus:ring-neutral-600 focus:outline-none"
>
<span
@@ -101,7 +101,7 @@
<span class="text-red-500">BANNED</span>
{/if}
<a
href={resolve(`/user/${node.author?.username}`)}
href={resolve(`/user/[username]`, { username: node.author?.username})}
class="flex items-center gap-2 underline"
>
<span