Skip to content

Commit 1b6b167

Browse files
Update the endpoint for getMenu
1 parent c1a9054 commit 1b6b167

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/next-drupal/src/next-drupal.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,7 @@ export class NextDrupal extends NextDrupalBase {
11081108
const endpoint = await this.buildEndpoint({
11091109
locale:
11101110
options?.locale !== options?.defaultLocale ? options.locale : undefined,
1111-
resourceType: "menu_items",
1112-
path: menuName,
1111+
path: `/menu_items/${menuName}`,
11131112
searchParams: options.params,
11141113
})
11151114

0 commit comments

Comments
 (0)