Addon
No specific addon – This feature request is related to Webtools Core
Summary
Populate url_path in for example a find & findMany queries on content-types, but also webhook or whenever a content-type is queried. Pretty much just treat url_path as a field.
Why is it needed?
- Let's say you want to get all articles and list them as links on your website. Generally one would use a
findMany to do this, but this would not provide the url_path of the article so there's no way you could set the link to the article.
- Or maybe a webhook is being triggered on the update of a content-type that revalidates the cache of a given path. Now there's no path to supply the revalidation webhook.
Suggested solution(s)
- Somehow allow for populating the
url_path like with other relations
- Or extend returned data with the
url_path
Related issue(s)/PR(s)
No response
Addon
No specific addon – This feature request is related to Webtools Core
Summary
Populate
url_pathin for example afind&findManyqueries on content-types, but also webhook or whenever a content-type is queried. Pretty much just treaturl_pathas a field.Why is it needed?
findManyto do this, but this would not provide theurl_pathof the article so there's no way you could set the link to the article.Suggested solution(s)
url_pathlike with other relationsurl_pathRelated issue(s)/PR(s)
No response