mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +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) {
|
function selectMenuItem(url) {
|
||||||
url = url
|
url = url
|
||||||
.replace(/\/\d+$/, '')
|
.replace(/\/\d+$/, '')
|
||||||
.split('/').slice(0, 3).join('/');
|
.split('/').slice(0, 3).join('/')
|
||||||
|
.split('?')[0];
|
||||||
|
|
||||||
// If index is requested, load the dashboard
|
// If index is requested, load the dashboard
|
||||||
if (url === 'admin') {
|
if (url === 'admin') {
|
||||||
|
|||||||
Reference in New Issue
Block a user