We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0113043 commit e3ab95fCopy full SHA for e3ab95f
src/pages/education-resources/index.astro
@@ -9,7 +9,7 @@ import { categories } from "@/src/content/tutorials/config";
9
import { removeLocalePrefix } from "@i18n/utils";
10
11
const pages = await getCollectionInDefaultLocale("pages");
12
-const page = pages.find((page) => page.slug === 'education-resources')!
+const page = pages.find((page) => removeLocalePrefix(page.slug).slice(1) === 'education-resources')!
13
14
const currentLocale = getCurrentLocale(Astro.url.pathname);
15
const t = await getUiTranslator(currentLocale);
0 commit comments