next-drupal
next-drupal copied to clipboard
useDefaultResourceTypeEntry-locale-fix
Fix for locale prefix when config option useDefaultResourceTypeEntry is set to true
@IvanSKIT is attempting to deploy a commit to the Chapter Three Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| next-drupal | ✅ Ready (Inspect) | Visit Preview | Jul 27, 2022 at 9:35AM (UTC) |
@IvanSKIT Can you help me figure out what's happening here? Sorry it's been a while and I can't remember what was the issue.
Thank you
Hi @shadcn, when useDefaultResourceTypeEntry is set to true, locale prefix is in the wrong position. Locale prefix should be placed before apiPrefix not after. https://www.drupal.org/docs/core-modules-and-themes/core-modules/jsonapi-module/api-overview#s-url-structure
Thank you for your time!