Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Link Field does not return localized entry in GraphQL #16866

Open
denisyilmaz opened this issue Mar 11, 2025 · 0 comments
Open

[5.x]: Link Field does not return localized entry in GraphQL #16866

denisyilmaz opened this issue Mar 11, 2025 · 0 comments
Labels

Comments

@denisyilmaz
Copy link

What happened?

Description

Follow-up question to issue #16458 and #15821

@brandonkelly we have a similar setup as described in #16458 except that we query the Link field through GraphQL. Currently its not possible to set the queried siteId as a "argument". I can see why a "non-translated" field should behave like an absolute URL (so selecting one entry in one site is the same on all available sites, ergo not translated).

But in our multi-site setup we require that the links are "localized" while we dont want the editors to go through all sites to change the link multiple times (which would be required if the propagation is only happening on a new entry).

Is there a way to explicitly query the field for a specific site (in GraphQL)?

Steps to reproduce

Expected behavior

Actual behavior

Craft CMS version

5.6.11

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@denisyilmaz denisyilmaz changed the title [5.x]: [5.x]: Link Field does not return localized entry in GraphQL Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant