-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content Relationship and Multi-languages: Wrong type for custom types #86
Comments
Actually it looks like its a general problem of the REST API and multi-languages. I did a dummy repo to test. While the master language returns the right type for |
The issue was identified and it's related to the translation from one
locale to another.
We already released a fix to prevent that from happening again and another
fix will be released on Monday for already corrupted links.
Sorry for the inconvenience.
Le ven. 5 avr. 2019 à 18:07, Marcel Eyer <notifications@github.com> a
écrit :
… Actually it looks like its a general problem of the API. I did a dummy
repo to test.
While the master language returns the right (chi) type for
results.[type="paren"]. data.child.type the 2nd language does not.
- master language:
https://content-type-test.prismic.io/api/v2/documents/search?ref=XKd5ThMAAPwpQlHb#format=json
- 2nd Language:
https://content-type-test.prismic.io/api/v2/documents/search?ref=XKd5ThMAAPwpQlHb&lang=de-ch#format=json
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtiX2stpsYKroUdTVgBafbrK426i6eEks5vd3TagaJpZM4ce7M1>
.
|
@arnaudlewis it works with a new created repo! Thanks! |
Hi @arnaudlewis There is still a similar bug with i18n/custom types/Content Relationship. Looks like its related to the Single Type custom type: master language: https://broken-content.prismic.io/api/v1/documents/search?ref=XKsVyRMAAEqPUjE1#format=json
2nd language (document object is missing): https://broken-content.prismic.io/api/v1/documents/search?ref=XKsVyRMAAEqPUjE1&lang=de-ch#format=json
Or do I something wrong? |
The fix is coming today to resolve this issue.
I'll keepyou posted ;)
Le lun. 8 avr. 2019 à 11:46, Marcel Eyer <notifications@github.com> a
écrit :
… Hi @arnaudlewis <https://github.com/arnaudlewis>
There is still similar bug with i18n and custom types. Looks like its
related to the *Single Type* custom type:
master language:
https://broken-content.prismic.io/api/v1/documents/search?ref=XKsVyRMAAEqPUjE1#format=json
oah: {
type: "Link.document"
value: {
document: {
id: "XKsRthMAAO6UUh79"
type: "child"
tags: [ ]
lang: "en-us"
slug: "child-title-en"
}
2nd language (document object is missing):
https://broken-content.prismic.io/api/v1/documents/search?ref=XKsVyRMAAEqPUjE1&lang=de-ch#format=json
{
oah: {
type: "Link.document"
value: "=&=033XKsR0hMAAO6UUh96%%parent-single%%"
}
}
Or do I something wrong?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtiXxAtOdSnMwnPRHJGkx_gEeIJkerGks5vew_sgaJpZM4ce7M1>
.
|
The fix has been released. |
Setup:
home_page
andtip
).tip
is used in a slice ofhome_page
de-ch
and a 2nd languagefr-ch
If I query the master language the custom types in
slice.items
is correct ("type": "tip",
)JS:
Result
But when I query a non-master language I get
"type": "home_page",
as type for the custom typeJS:
Result
Any idea why?
Thanks!
The text was updated successfully, but these errors were encountered: