Skip to content

Commit cda775b

Browse files
committed
fix brackrumb cat
1 parent 136d4d1 commit cda775b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/[lang]/articles/categories/[category]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default async function CategoryPage({ params }: CategoryPageProps) {
167167
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} />
168168

169169
<div className="px-5 2xl:px-10 mt-[60px] lg:mt-0">
170-
<BreadCrumb params={params} />
170+
<BreadCrumb params={params} title={catName} />
171171
</div>
172172

173173
<CategoryHeader

src/components/shared/BreadCrumb.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ export default function BreadCrumb({ params, eventTitle , title}: { params: any;
349349
},
350350
{
351351
name: `${params.category}`,
352-
en: decodeURIComponent(params.category || ""),
353-
fa: decodeURIComponent(params.category|| ""),
352+
en: decodeURIComponent(title || ""),
353+
fa: decodeURIComponent(title|| ""),
354354
font: "font-normal",
355355
link: `/${params.lang}/articles/categories/${params.category}`,
356356
},

0 commit comments

Comments
 (0)