Are links to localized content missing from the REST API? #5735
-
I have a multisite but can't seem to find a way to get the Locales Tag information in the REST API. I have a page that is translated to 3 languages. However, the API doesn't seem to return any data about the translated versions of this page. Which I can get with the locales tag. The only thing that I can find in the API response which is related to locales is the following: "locale": "en",
"localized_urls": [], But as you can see, the localized_urls property is empty. Am I missing something here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I don't think the Content API has that information. You can probably add it by overriding the class: |
Beta Was this translation helpful? Give feedback.
-
How are you getting |
Beta Was this translation helpful? Give feedback.
I don't think the Content API has that information. You can probably add it by overriding the class:
https://statamic.dev/rest-api#customizing-resources