fix(web): use username/slug URL format for collection links on /collections page

This commit is contained in:
Ajax Davis 2026-01-25 02:57:57 +10:00
parent 1118463e6b
commit 9c731d582e

View file

@ -141,7 +141,7 @@ export default function PublicCollectionsPage(): React.ReactElement {
<>
<td className="px-4 py-3">
<Link
href={`/collections/${collection.id}`}
href={collection.createdBy.username ? `/${collection.createdBy.username}/collections/${collection.slug}` : `/collections/${collection.id}`}
className="font-semibold text-foreground hover:text-primary group-hover:text-primary transition-colors"
>
{collection.name}