Skip to content

bug: fetching translated posts by uri #2066

@moonmeister

Description

@moonmeister

I'm seeing an issue with Polylang and trying to fetch content by uri. valu-digital/wp-graphql-polylang#57 it's already been reported on the polylang repo but it may be a core issue. If I have 3 pages with the slug "about" but each in a different language, then only the english one is returned (english being the default language). I'm guessing this is a corner case that wasn't considered. Polylang uses the post_link hook to modify urls for rendering.

Can we confirm whether this is a polylang or graphql issue?

Versions

WordPress - 5.8
WPGraphQL - 1.62
Polylang Pro - 3.1-rc1
Polylang WPGraphQL - 0.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    close candidateNeeds confirmation before closingtype: bugIssue that causes incorrect or unexpected behavior

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions