Skip to content

Commit e3ab95f

Browse files
Update index.astro
Fixed the removal of code (see pull request)
1 parent 0113043 commit e3ab95f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/education-resources/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { categories } from "@/src/content/tutorials/config";
99
import { removeLocalePrefix } from "@i18n/utils";
1010
1111
const pages = await getCollectionInDefaultLocale("pages");
12-
const page = pages.find((page) => page.slug === 'education-resources')!
12+
const page = pages.find((page) => removeLocalePrefix(page.slug).slice(1) === 'education-resources')!
1313
1414
const currentLocale = getCurrentLocale(Astro.url.pathname);
1515
const t = await getUiTranslator(currentLocale);

0 commit comments

Comments
 (0)