Fix ACP title bug with hashes (#5331)

This commit is contained in:
Peter Jaszkowiak
2017-01-02 08:59:55 -07:00
committed by Julian Lam
parent a08474a9fd
commit cb82824c13

View File

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