diff --git a/public/src/admin/admin.js b/public/src/admin/admin.js index 58e79aa95c..7a5a213195 100644 --- a/public/src/admin/admin.js +++ b/public/src/admin/admin.js @@ -87,7 +87,7 @@ url = url .replace(/\/\d+$/, '') .split('/').slice(0, 3).join('/') - .split('?')[0].replace(/(\/+$)|(^\/+)/, ''); + .split(/[?#]/)[0].replace(/(\/+$)|(^\/+)/, ''); // If index is requested, load the dashboard if (url === 'admin') {