Making WordPress.org

Opened 14 months ago

Last modified 14 months ago

#6776 new defect (bug)

API-REST profile users link

Reported by: javiercasares's profile JavierCasares Owned by:
Milestone: Priority: normal
Component: Profiles Keywords: needs-patch
Cc:

Description

Checking a profile URL via REST API, like:
https://profiles.wordpress.org/wp-json/wporg/v1/users/javiercasares/

The link URL is:

link: "https://profiles.wordpress.org/author/javiercasares/"

But that URL doesn't work. It should be:

link: "https://profiles.wordpress.org/javiercasares/"

Change History (2)

#1 @dd32
14 months ago

This API endpoint was probably not intended on being used outside of the WordPress.org network (profiles.wordpress.org is buddypress.org), which is where that additional /profile/ came from.

https://wordpress.org/wp-json/wporg/v1/users/javiercasares/ has the correct data.

Note: See TracTickets for help on using tickets.