diff --git a/public/src/admin/admin.js b/public/src/admin/admin.js index 88998bc5f6..eb45ccc2e1 100644 --- a/public/src/admin/admin.js +++ b/public/src/admin/admin.js @@ -69,6 +69,14 @@ $('#main-page-title').text(menu.text() + (menu.parents('.menu-item').children('a').text() === 'Settings' ? ' Settings' : '')); } }); + + var acpPath = url.replace('admin/', '').split('/'); + acpPath.forEach(function(path, i) { + acpPath[i] = path.charAt(0).toUpperCase() + path.slice(1); + }); + acpPath = acpPath.join(' > '); + + document.title = (url === 'admin/general/dashboard' ? 'Dashboard' : acpPath) + ' | NodeBB Admin Control Panel'; } function setupRestartLinks() {