fix admin menu + title if url has a query string

ex. ?loggedin
This commit is contained in:
psychobunny
2015-10-19 15:48:05 -04:00
parent 7f66494a57
commit 0e7228eff7

View File

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