mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: properly resolve dynamic urls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user