next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

useDefaultResourceTypeEntry-locale-fix

Open IvanSKIT opened this issue 3 years ago • 4 comments

Fix for locale prefix when config option useDefaultResourceTypeEntry is set to true

IvanSKIT avatar Jul 12 '22 12:07 IvanSKIT

@IvanSKIT is attempting to deploy a commit to the Chapter Three Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jul 12 '22 12:07 vercel[bot]

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)

vercel[bot] avatar Jul 27 '22 09:07 vercel[bot]

@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

shadcn avatar Sep 27 '22 08:09 shadcn

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!

IvanSKIT avatar Sep 27 '22 09:09 IvanSKIT