Open kuuak opened 2 years ago
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:
Sébastien replied
Feb 14, 16:33 Hello,
Posting here or in our GH is the same, we do not support GraphQL. As per our lead developer the idea developed on the issue you mentioned is the right one.
Regards
Jan replied
Feb 14, 12:42 Hi Sebastian,
thanks for your message.
Do you mind if I post this message verbatim to Github?
Best regards,
Sébastien replied
Feb 14, 9:30 Hello,
Thank you for contacting us.
As you know, "WP Graphql Polylang" is 13rd party plugin we're not involved in. We do not know how it works and won't be able to help without digging in the code... and it's not in our current roadmap. If "WP Graphql Polylang" developers need help to solve this, they can of course contact us and our developers will try to help the best as they can. We can also provide them Polylang pro license to correct this.
I suggest you to contact & check with them how to fix this.
Regards
Jan sent a message
Feb 13, 14:13 Hello, I am using Polylang in a decoupled scenario with GraphQL connecting the frontend to WP. There is a 3rd party plugin for Polylang you might be familiar with: https://github.com/valu-digital/wp-graphql-polylang
Unfortunately I cannot use the Pro feature of slug sharing as described in the ongoing issue: https://github.com/valu-digital/wp-graphql-polylang/issues/67
I am hoping you can contribute to the GraphQL extension and help fix the issue.
Best regards Jan
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
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
??