mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
fix admin menu + title if url has a query string
ex. ?loggedin
This commit is contained in:
@@ -47,7 +47,8 @@
|
||||
function selectMenuItem(url) {
|
||||
url = url
|
||||
.replace(/\/\d+$/, '')
|
||||
.split('/').slice(0, 3).join('/');
|
||||
.split('/').slice(0, 3).join('/')
|
||||
.split('?')[0];
|
||||
|
||||
// If index is requested, load the dashboard
|
||||
if (url === 'admin') {
|
||||
|
||||
Reference in New Issue
Block a user