Skip to content

Node.js based forum software built for the modern web

closes #4466

barisusakli0f959c341bba
diff --git a/src/routes/index.js b/src/routes/index.js
index 58754670d5..e26f00e38f 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -146,7 +146,7 @@ module.exports = function(app, middleware) {
function handle404(app, middleware) {
var relativePath = nconf.get('relative_path');
- var isLanguage = new RegExp('^' + relativePath + '/language/[\\w]{2,}/.*.json'),
+ var isLanguage = new RegExp('^' + relativePath + '/language/.*/.*.json'),
isClientScript = new RegExp('^' + relativePath + '\\/src\\/.+\\.js');
app.use(function(req, res) {