Skip to content

Node.js based forum software built for the modern web

update regex

Barış Soner Uşaklıa3e327301bcf
diff --git a/src/controllers/index.js b/src/controllers/index.js
index 7b97c878d6..c595b2e1da 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -353,7 +353,7 @@ Controllers.ping = function (req, res) {
Controllers.handle404 = function (req, res) {
var relativePath = nconf.get('relative_path');
- var isClientScript = new RegExp('^' + relativePath + '\\/src\\/.+\\.js');
+ var isClientScript = new RegExp('^' + relativePath + '\\/assets\\/src\\/.+\\.js');
if (plugins.hasListeners('action:meta.override404')) {
return plugins.fireHook('action:meta.override404', {