We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38659b3 commit 5a07447Copy full SHA for 5a07447
1 file changed
middleware/early-access-breadcrumbs.js
@@ -1,6 +1,8 @@
1
const path = require('path')
2
const { getPathWithoutLanguage } = require('../lib/path-utils')
3
4
+// Early Access content doesn't conform to the same structure as other products, so we
5
+// can't derive breadcrumbs from the siteTree in the same way. Hence, this separate middleware.
6
module.exports = async (req, res, next) => {
7
if (!req.context.page) return next()
8
if (!req.context.page.hidden) return next()
0 commit comments