diff --git a/frontend/composables/useMenuEntriesState.ts b/frontend/composables/useMenuEntriesState.ts index e33b523d7..07fea0d77 100644 --- a/frontend/composables/useMenuEntriesState.ts +++ b/frontend/composables/useMenuEntriesState.ts @@ -3,11 +3,9 @@ import { IconMap } from "~/types/icon-map"; const createMenuEntry = (label: string, basePath: string, iconURL: string) => { const { locale } = useI18n(); const router = useRouter(); - // here, afaik, this is returning NaN as the id of a given organization is alphanumeric -- not a number. - // added the raw id which can be used with the routeURL , while maintaining the number version - const idStr = router.currentRoute.value.params.id; - const id = Number(router.currentRoute.value.params.id); - const routeURL = `/${locale.value}/${basePath}/${idStr}/${label + + const { id } = router.currentRoute.value.params; + const routeURL = `/${locale.value}/${basePath}/${id}/${label .split(".") .pop()! .toLowerCase()}`;