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

[6.x] Link Fieldtype: Provide more context for entry links in the REST API #11375

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Jan 21, 2025

Right now, the REST API returns the URLs of links configured using the Link fieldtype.

However, for entry links, there's no way to know any more information about the link, other than its URL. You could loop through and query each collection individually but that's certainly far from ideal.

In Antlers/Blade land, #8911 made it possible to get more "information" about a linked entry. However, that change was never reflected in the REST API, due to the fact it'd be a breaking change.

This PR follows-up and makes that breaking change so consumers of the REST API can get more context of linked entries without having to do a lot of work.

CleanShot 2025-01-21 at 18 08 28

@duncanmcclean duncanmcclean changed the title [6.x] Link Fieldtype: Provide more context for entry links [6.x] Link Fieldtype: Provide more context for entry links in the REST API Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant