fix: #7274 incorrect handling of client script 404s

This commit is contained in:
Julian Lam
2019-01-21 11:39:48 -05:00
parent 40637828af
commit 831d079512

View File

@@ -9,7 +9,7 @@ var plugins = require('../plugins');
exports.handle404 = function handle404(req, res) {
var relativePath = nconf.get('relative_path');
var isClientScript = new RegExp('^' + relativePath + '\\/assets\\/src\\/.+\\.js$');
var isClientScript = new RegExp('^' + relativePath + '\\/assets\\/src\\/.+\\.js(\\?v=\\w+)?$');
if (plugins.hasListeners('action:meta.override404')) {
return plugins.fireHook('action:meta.override404', {