We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next-drupal (NPM package)
I am getting an error Error: Resource of type 'menu_items' not found. on trying to fetch menus with getMenu.
Error: Resource of type 'menu_items' not found.
After debugging i see that buildEndpoint generates /jsonapi as an endpoint to fetch menus rather than /jsonapi/menu_items/{menu}
/jsonapi
/jsonapi/menu_items/{menu}
Fix: getMenu should call the buildEndpoint as below by concatenating the path rather than passing menu_items as a resourceType.
menu_items
const endpoint = await this.buildEndpoint({ locale: options?.locale !== options?.defaultLocale ? options.locale : undefined, path: `/menu_items/${menuName}`, searchParams: options.params, })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Package containing the bug
next-drupal (NPM package)
Describe the bug
I am getting an error
Error: Resource of type 'menu_items' not found.
on trying to fetch menus with getMenu.After debugging i see that buildEndpoint generates
/jsonapi
as an endpoint to fetch menus rather than/jsonapi/menu_items/{menu}
Fix:
getMenu should call the buildEndpoint as below by concatenating the path rather than passing
menu_items
as a resourceType.The text was updated successfully, but these errors were encountered: