Opened 5 years ago
Last modified 2 years ago
#54387 new enhancement
trailing slash in the url /wp-json
| Reported by: | superpoincare | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | REST API | Version: | 5.8.1 |
| Severity: | minor | Keywords: | dev-feedback |
| Cc: | Focuses: |
Description
The url with wp-json doesn't redirect one to another.
Won't it be better if there's a unique url, with one with/without trailing slash permanent.
For example:
https://www.example.com/wp-json and
https://www.example.com/wp-json/
are different addresses whereas one should redirect to the other (?).
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
While I like the idea, there might be issues with backward compatibility.
For example,
curldoes not follow redirects by default, so a redirect would not work unlesscurlis explicitly told to follow redirects.