diff --git a/ghost/core/core/frontend/helpers/collection.js b/ghost/core/core/frontend/helpers/collection.js index 4aef9ae8c1..adef78bf87 100644 --- a/ghost/core/core/frontend/helpers/collection.js +++ b/ghost/core/core/frontend/helpers/collection.js @@ -113,6 +113,7 @@ module.exports = async function collection(slug, options) { // Parse the options we're going to pass to the API apiOptions = parseOptions(apiOptions); apiOptions.context = {member: data.member}; + apiOptions.collection = slug; try { const response = await makeAPICall(resource, controllerName, action, apiOptions); diff --git a/ghost/core/core/server/api/endpoints/posts-public.js b/ghost/core/core/server/api/endpoints/posts-public.js index 9b5d3d64e6..17168d83f2 100644 --- a/ghost/core/core/server/api/endpoints/posts-public.js +++ b/ghost/core/core/server/api/endpoints/posts-public.js @@ -40,7 +40,8 @@ module.exports = { 'order', 'page', 'debug', - 'absolute_urls' + 'absolute_urls', + 'collection' ], validation: { options: {