mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #6046
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports = function (middleware) {
|
||||
options.relative_path = nconf.get('relative_path');
|
||||
options.template = { name: template };
|
||||
options.template[template] = true;
|
||||
options.url = (req.baseUrl + req.path).replace(/^\/api/, '');
|
||||
options.url = (req.baseUrl + req.path.replace(/^\/api/, ''));
|
||||
options.bodyClass = buildBodyClass(req);
|
||||
|
||||
plugins.fireHook('filter:' + template + '.build', { req: req, res: res, templateData: options }, next);
|
||||
|
||||
Reference in New Issue
Block a user