Skip to content

Node.js based forum software built for the modern web

fix debug path on relative path install

barisusakli916f1c7ce1e1
diff --git a/src/routes/debug.js b/src/routes/debug.js
index 881d841bad..695e806b23 100644
--- a/src/routes/debug.js
+++ b/src/routes/debug.js
@@ -1,6 +1,7 @@
"use strict";
var express = require('express'),
+ nconf = require('nconf'),
user = require('./../user'),
categories = require('./../categories'),
topics = require('./../topics'),
@@ -8,7 +9,7 @@ var express = require('express'),
module.exports = function(app, middleware, controllers) {
var router = express.Router();
- app.use('/debug', router);
+ app.use(nconf.get('relative_path') + '/debug', router);
router.get('/uid/:uid', function (req, res) {
if (!req.params.uid) {
return res.redirect('/404');