Skip to content

Commit 9408a35

Browse files
Correct link domain and paths for tags / categories
1 parent 2864d2b commit 9408a35

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extending/linking/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ These link relations are a standardised system of categorising relationships bet
9595

9696
For any relations which don't fit a normal standard relation, custom link relations can be used. These custom relations are URIs, which ensures they are unique. Note though that these are still describing the *relationship*, not the resource you're linking to.
9797

98-
For example, the core API uses the `http://v2.wp-api.org/term` relation to specify terms on a post, but the terms themselves are at `/wp-json/wp/v2/terms/tag` on your own site. This indicates that the link is a term on the current resource, and the `taxonomy` key can be used to disambiguate it from others:
98+
For example, the core API uses the `https://api.w.org/term` relation to specify terms on a post, but the terms themselves are at `/wp-json/wp/v2/tags` on your own site. This indicates that the link is a term on the current resource, and the `taxonomy` key can be used to disambiguate it from others:
9999

100100
```json
101101
{
102102
"_links": {
103-
"http://v2.wp-api.org/term": [
103+
"https://api.w.org/term": [
104104
{
105-
"href": "http://example.com/wp-json/wp/v2/terms/category",
105+
"href": "http://example.com/wp-json/wp/v2/categories",
106106
"taxonomy": "category",
107107
"embeddable": true
108108
}
@@ -114,9 +114,9 @@ These link relations are a standardised system of categorising relationships bet
114114
You can pick any URI you'd like for the relation, but keep them constant across sites and versions when the relationship doesn't change.
115115

116116
The core REST API uses the following custom link relations:
117-
* `http://v2.wp-api.org/attachment`: Refers to a resource attached to the current post (such as a featured image or video).
118-
* `http://v2.wp-api.org/meta`: Refers to metadata attached to the current post.
119-
* `http://v2.wp-api.org/term`: Refers to a term categorising the current resource.
117+
* `https://api.w.org/attachment`: Refers to a resource attached to the current post (such as a featured image or video).
118+
* `https://api.w.org/meta`: Refers to metadata attached to the current post.
119+
* `https://api.w.org/term`: Refers to a term categorising the current resource.
120120

121121

122122
Embedding

0 commit comments

Comments
 (0)