wp-graphql-polylang
wp-graphql-polylang copied to clipboard
Custom domains instead of prefix strategy
We're switching from prefix strategy (https://domain.com/de/ to https://domain.de). How do we retrieve pages by URI then?
Previously we could simply do:
page(id: "de/some-page", idType: URI, ) {
However, since changing to domains instead of prefix, this now returns null.
I have tried with:
- https://domain.de/some-page
- domain.de/some-page
- de/some-page
But none of them work unfortunately.