diff --git a/SharpbinV3.Client/src/lib/components/Paste.svelte b/SharpbinV3.Client/src/lib/components/Paste.svelte index 00b86f6..96b7925 100644 --- a/SharpbinV3.Client/src/lib/components/Paste.svelte +++ b/SharpbinV3.Client/src/lib/components/Paste.svelte @@ -34,7 +34,7 @@ {#if compact}
@@ -119,7 +119,7 @@ {:else} BANNED {/if} {report.reporterDisplayName || report.reporterUsername} @@ -89,7 +89,7 @@ Target Paste: {report.pasteTitle !== '' ? report.pasteTitle : report.pasteId} @@ -101,7 +101,7 @@ {#if report.targetUsername} {report.targetDisplayName || report.targetUsername} diff --git a/SharpbinV3.Client/src/routes/reports/+page.svelte b/SharpbinV3.Client/src/routes/reports/+page.svelte index 51f49bb..32f0ccb 100644 --- a/SharpbinV3.Client/src/routes/reports/+page.svelte +++ b/SharpbinV3.Client/src/routes/reports/+page.svelte @@ -200,11 +200,11 @@ class="flex cursor-pointer 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" role="link" tabindex="0" - onclick={() => goto(resolve(`/report/${report.reportID}`))} + onclick={() => goto(resolve(`/report/[reportId]`, { reportId: String(report.reportID)}))} onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); - goto(resolve(`/report/${report.reportID}`)); + goto(resolve(`/report/[reportId]`, { reportId: String(report.reportID)})); } }} > @@ -221,7 +221,7 @@ {reportTargetLabels[report.targetType] ?? 'Unknown'} {#if report.pasteId} @@ -231,7 +231,7 @@ {#if report.userUUID} {#if report.targetUsername} goto(resolve(`/report/${report.reportID}`))} + onclick={() => goto(resolve(`/report/[reportId]`, { reportId: String(report.reportID)}))} onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); - goto(resolve(`/report/${report.reportID}`)); + goto(resolve(`/report/[reportId]`, { reportId: String(report.reportID)})); } }} > @@ -1697,7 +1697,7 @@ {reportTargetLabels[report.targetType] ?? 'Unknown'} {#if report.pasteId} @@ -1707,7 +1707,7 @@ {#if report.userUUID} {#if report.targetUsername} goto(resolve(`/report/${report.reportID}`))} + onclick={() => goto(resolve(`/report/[reportId]`, { reportId: String(report.reportID)}))} onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); - goto(resolve(`/report/${report.reportID}`)); + goto(resolve(`/report/[reportId]`, { reportId: String(report.reportID)})); } }} > @@ -1756,7 +1756,7 @@ {reportTargetLabels[report.targetType] ?? 'Unknown'} {#if report.reporterUsername} @@ -1778,7 +1778,7 @@ {#if report.userUUID} {#if report.targetUsername}