storyblok / storyblok

Info about Storyblok
https://storyblok.atlassian.net/servicedesk
318 stars 32 forks source link

add compomponent type information to link objects when using resolve_links=url #551

Open Slackman2015 opened 3 years ago

Slackman2015 commented 3 years ago

The feature would affect: (check one with "x")

Is your feature request related to a problem? Please describe. When creating the links for pages based on the component types and the slugs of the stories it is needed to use the parameter 'resolve_links' with the value 'story'. The problem with this solution is that when the stories are quite big this leads to unnecessarily high memory consumption in the app and slower responses of the APIs for the bigger payload.

Describe the solution you'd like It would be very helpful to have the component type as additional information in the link object of a story to be able to satisfy the use-case explained above.

This feature request is based on https://forum.storyblok.com/t/delivery-api-add-content-type-to-resolved-links/414

Slackman2015 commented 3 years ago

It also seems to be helpful to have the component information generally in the link objects for example for the use-case that a user needs to filter link objects by their component type in an app. As filtering isn't available for link objects yet and the feature request https://github.com/storyblok/storyblok/issues/478 is still open it might be an alternative.