Changes between Initial Version and Version 1 of Ticket #38873
- Timestamp:
- 11/20/2016 12:40:08 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #38873 – Description
initial v1 1 Current, a request to the API with rewrite rules enabled doesn't differen entiate URLs with trailing slashes just as `http://localhost:8080/wp-json/wp/v2/` vs `http://localhost:8080/wp-json/wp/v2`, this seems to be a property to WP_Rewrite / class WP to split off the trailing slash always.1 Current, a request to the API with rewrite rules enabled doesn't differentiate URLs with trailing slashes just as `http://localhost:8080/wp-json/wp/v2/` vs `http://localhost:8080/wp-json/wp/v2`, this seems to be a property to WP_Rewrite / class WP to split off the trailing slash always. 2 2 3 3 However, when making requests do `http://localhost:8080/?rest_route=/wp/v2/` the trailing slash is not stripped, as it doesn't go through the same transformation in `class WP`. I think it's safe to always untrailingslash the requested URL in the REST API, for matching purposes.
