Skip to content
New issue

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

restBase not being used in api request #16

Open
corywebb opened this issue Aug 19, 2019 · 0 comments
Open

restBase not being used in api request #16

corywebb opened this issue Aug 19, 2019 · 0 comments

Comments

@corywebb
Copy link

See ba8a052#diff-07975b2f8d9d9adc2d9fdc0acf38cfa1R202

The API request to fetch the full post was updated in the commit above, but that code has not been built into the deployed index.js file. That file still has path: "/wp/v2/".concat(t.subtype, "s/").concat(t.id), so it is adding an "s" to the end of the subtype name for custom post types. This is throwing a network error if the post type's rest base is different from the post type name with an "s" on the end of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant