Fix genres & studios links

This commit is contained in:
Zoe Roux 2026-03-31 11:26:15 +02:00
parent 4d64cbaf5d
commit 5b4177f34d
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -123,7 +123,7 @@ export const ItemDetails = ({
<Chip
key={x ?? i}
label={t(`genres.${x}`)}
href={`/genres/${x}`}
href={`/browse?filter=genres has ${x}`}
size="small"
className="mx-1"
/>

View File

@ -401,7 +401,9 @@ const Description = ({
<UL className="flex-1 flex-wrap max-sm:flex-row max-sm:items-center max-sm:text-center">
{genres.map((genre) => (
<LI key={genre}>
<A href={`/genres/${genre.toLowerCase()}`}>
<A
href={`/browse?filter=genres has ${genre.toLowerCase()}`}
>
{t(`genres.${genre}`)}
</A>
</LI>
@ -435,7 +437,7 @@ const Description = ({
{studios.map((x, i) => (
<Fragment key={x.id}>
{i !== 0 && ","}
<A href={x.slug} className="ml-2">
<A href={`/browse?filter=studios has ${x.slug}`} className="ml-2">
{x.name}
</A>
</Fragment>