fix admin menu + title if url has a query string

ex. ?loggedin
v1.18.x
psychobunny 9 years ago
parent 7f66494a57
commit 0e7228eff7

@ -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') {

Loading…
Cancel
Save