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
Describe the bug Duplicate URLs can be created when the API call to WordPress only matches one item.
To Reproduce
/about-us/the-team
about-us
/any-value-in-here/the-team
Expected behavior The page should only be returned when the exact request URL matches the full URL in WordPress
Additional context This only seems to happen when the WordPress API returns exactly one match. This is the endpoint in question:
/wp-json/wp/v2/pages?slug=/page-url-here/
This only requests the final segement of the URL, e.g. in the above example:
The query would be:
/wp-json/wp/v2/pages?slug=/the-team/
If this API response returns more than one match, then this error doesn't occur.
I think this is related to the following recent changes:
https://github.com/strata/frontend/pull/83/files
The text was updated successfully, but these errors were encountered:
Various fixes have been made to CCS to help resolve this.
However, full fix is to access WP API using the post type & post ID which should be possible once we have persistent metadata about pages. See #63
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Duplicate URLs can be created when the API call to WordPress only matches one item.
To Reproduce
/about-us/the-team
about-us
changes to something else, e.g./any-value-in-here/the-team
Expected behavior
The page should only be returned when the exact request URL matches the full URL in WordPress
Additional context
This only seems to happen when the WordPress API returns exactly one match. This is the endpoint in question:
/wp-json/wp/v2/pages?slug=/page-url-here/
This only requests the final segement of the URL, e.g. in the above example:
/about-us/the-team
The query would be:
/wp-json/wp/v2/pages?slug=/the-team/
If this API response returns more than one match, then this error doesn't occur.
I think this is related to the following recent changes:
https://github.com/strata/frontend/pull/83/files
The text was updated successfully, but these errors were encountered: