Fix url
This commit is contained in:
parent
d2e63d427b
commit
4893b9c06a
@ -11,7 +11,11 @@ export default function PostItem(props: TPostItem) {
|
||||
>
|
||||
<a
|
||||
className='no-underline'
|
||||
href={`/${props.lang === 'es' ? 'es' : ''}/${props.type}/${props.id}`}
|
||||
href={
|
||||
props.lang === 'en'
|
||||
? `/${props.type}/${props.id}`
|
||||
: `/es/${props.type}/${[props.id]}`
|
||||
}
|
||||
>
|
||||
<span className='text-foreground text-sm font-light no-underline'>
|
||||
{formatDate(props.date, props.lang)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user