fix incorrect dropdown link

This commit is contained in:
Shahed Nasser
2025-03-11 12:25:22 +02:00
parent a26f48fde2
commit 3dd8061ae6

View File

@@ -11,9 +11,11 @@ export function getNavDropdownItems({ basePath }: Options): NavigationItem[] {
...item,
}
if (newItem.type === "link") {
if (newItem.link) {
newItem.link = `${basePath}${newItem.link}`
} else {
}
if (newItem.type === "dropdown") {
newItem.children = normalizeMenuItems({
basePath,
items: newItem.children,