wp-graphql-polylang icon indicating copy to clipboard operation
wp-graphql-polylang copied to clipboard

Custom domains instead of prefix strategy

Open simplenotezy opened this issue 3 years ago • 0 comments

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.

simplenotezy avatar Jan 07 '22 12:01 simplenotezy