diff --git a/lib/apiRoutes.js b/lib/apiRoutes.js index 8bc2d2d9..8ec3b869 100644 --- a/lib/apiRoutes.js +++ b/lib/apiRoutes.js @@ -33,11 +33,11 @@ module.exports = self => { const shouldRecurse = recursions <= maxRecursions; if (obj.type === 'relationship') { - // Filter out types that has the `relatedDocument` option set to `false` in their module. + // Filter out types that have the `relatedDocument` option set to `false` in their module. // Use `default-page` because this option is set on the page-type module, // which does not actually exist inside `apos.modules`: const module = obj.withType === '@apostrophecms/page' - ? 'default-page' + ? 'home-page' : obj.withType; return self.apos.modules[module].options.relatedDocument === false && obj.withType;