diff --git a/packages/marko-web-theme-monorail/routes/search.js b/packages/marko-web-theme-monorail/routes/search.js index 617a63d9d..7e49565e9 100644 --- a/packages/marko-web-theme-monorail/routes/search.js +++ b/packages/marko-web-theme-monorail/routes/search.js @@ -7,11 +7,13 @@ module.exports = (app, siteConfig) => { const { contentTypes = ['Article', 'Blog', 'Company', 'Podcast', 'Product', 'Video', 'Whitepaper'], assignedToWebsiteSectionIds, + defaultSortField, } = getAsObject(siteConfig, 'search'); const config = new MarkoWebSearchConfig({ resultsPerPage: { default: 18 }, contentTypes, assignedToWebsiteSectionIds, + defaultSortField, }); app.get('/search', (req, res, next) => { if (!get(req, 'query.searchQuery') && get(req, 'query.sortField')) {