valu-digital / wp-graphql-polylang

WPGraphQL Polylang Extension for WordPress
https://packagist.org/packages/valu/wp-graphql-polylang
GNU General Public License v2.0
124 stars 20 forks source link

Wrong translations when changing primary language #85

Open edouardjamieson opened 11 months ago

edouardjamieson commented 11 months ago

Hi!

We've been using this plugin for some time now in combination with

And when we try to change the primary language on polylang, the plugin still thinks the primary language is the old one. The default language returned by the query is right, but when querying pages or custom post types, their translated URIs are not quite right.

image

For example here, our main language is spanish, so the main website url should not have a /es at the end of the url but the other languages should. In the picture we can clearly see that the plugin still thinks the main language is english.

Do you have tips or way to resolve this issue ? Thanks.