0 || course.tags.length > 0) && (
{course.categories.map((c) => {
- const href = onCatalogPage
- ? courseCategoryHref(
- categorySlug === c.slug ? "" : c.slug,
- tagSlug,
- )
- : courseCategoryHref(c.slug);
+ const href = categoryHref(c.slug);
const active = categorySlug === c.slug;
return (
e.stopPropagation()}
aria-current={active ? "true" : undefined}
>
{
- const href = onCatalogPage
- ? courseTagHref(
- tagSlug === t.slug ? "" : t.slug,
- categorySlug,
- )
- : courseTagHref(t.slug);
+ const href = tagHref(t.slug);
const active = tagSlug === t.slug;
return (
e.stopPropagation()}
aria-current={active ? "true" : undefined}
>