-
Notifications
You must be signed in to change notification settings - Fork 22
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
nodeByURI not returning correct node when translations have same slug #67
Comments
Thanks for the problem description. I am facing the same issue. |
I am reposting the conversation I had with the Polylang team regading the issue:
|
The same bug applies to all queries with an URI even for tags. One may use different slugs work posts or taxonomies to overcome this issue, but it even affects tags! It would be great if we can find a solution! |
+1 |
+1 :( |
+1 |
1 similar comment
+1 |
Hi,
First: thanks for the plugin which is great! 👏
My setup:
When I have posts or pages sharing the same slug between translations, the RootQuery
nodeByUri
field does not return the correct node according to the localized URI.As you can see the queries in the GraphQLi (screenshot below), the three queries return the same node which can be any of the translated node.
I could find a workaround to make it work, but it feels really dirty:
However, this is really risky business as I'm changing the SQL query to the DB to handle the language. So I'm wondering if there is a better solution to fix this translation issues with
nodeByUri
??The text was updated successfully, but these errors were encountered: