diff --git a/plugins/srd-aedifex-router/route.js b/plugins/srd-aedifex-router/route.js index cc8ea72..60d5e53 100644 --- a/plugins/srd-aedifex-router/route.js +++ b/plugins/srd-aedifex-router/route.js @@ -43,6 +43,7 @@ module.exports = (plugin, app) => { // build the location let loc = ''+app.live.conf['shortname']+'' let crumbs = req.path.split('/') + let title = crumbs.reverse().filter(v=>v!==''&&v!=='db').map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join(' - ') for (let i = 1; i < crumbs.length; i++) { if (crumbs[i] == '') continue loc += ' → '+(crumbs[i].replace('-', ' '))+'' @@ -52,7 +53,7 @@ module.exports = (plugin, app) => { content, menu: app.live.menu, location: loc, - title: 'gear', + title: title, www_name: app.live.conf.www_name, www_copyright: app.live.conf.www_copyright, scripts: ['/js/gear.js'],