We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c95b431 commit 60b8340Copy full SHA for 60b8340
1 file changed
middleware/is-archived-version.js
@@ -2,8 +2,8 @@ const patterns = require('../lib/patterns')
2
const { deprecated } = require('../lib/enterprise-server-releases')
3
4
module.exports = async (req, res, next) => {
5
- // if this is a docs path, use the req.path
6
// if this is an assets path, use the referrer
+ // if this is a docs path, use the req.path
7
const pathToCheck = req.get('referrer') || req.path
8
9
// ignore paths that don't have an enterprise version number
0 commit comments