fix incorrect dropdown link

This commit is contained in:
Shahed Nasser committed 2025-03-11 12:25:22 +02:00
1 parent a26f48fde2
commit 3dd8061ae6
1 file changed
+4 -2
@@ -11,9 +11,11 @@ export function getNavDropdownItems({ basePath }: Options): NavigationItem[] {
...item, ...item,
} }
if (newItem.type === "link") { if (newItem.link) {
newItem.link = `${basePath}${newItem.link}` newItem.link = `${basePath}${newItem.link}`
} else { }
if (newItem.type === "dropdown") {
newItem.children = normalizeMenuItems({ newItem.children = normalizeMenuItems({
basePath, basePath,
items: newItem.children, items: newItem.children,