Problem/Motivation
The request URL is built by using ${baseUrl}${selectedEntity}/${selectedBundle}. But the actual path may be customized. For example, the Entity may be taxonomy_term and the Bundle may be categoris, but the path to the list might be customized to taxonomy/categories
Steps to reproduce
Customize the path to the API endpoint.
Proposed resolution
The proper path to the resource is listed at /jsonapi. I suspect we need to use that instead of constructing the URL from pieces in js/react-app//src/utils/urlBuilde.js
Issue fork jsonapi_query_builder-3545862
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
traviscarden commentedI think ^this gets the job done, @balsama. A couple of points:
caniuse-liteyarn package. I know that's completely out of scope, but I got tired of seeing the warning every time I compiled. It doesn't hurt my feelings if you want to remove it from the MR.Comment #5
balsamaThanks. Tested against our sample app which customizes the paths for terms.
Comment #7
balsama