Fix parsing URL hash when no "?" was specified

This commit is contained in:
Vincent Petry 2014-06-25 12:37:11 +02:00
parent 363f8f3205
commit 9de3d8225b
1 changed files with 4 additions and 0 deletions

View File

@ -1411,6 +1411,10 @@ OC.Util.History = {
if (pos >= 0) {
return hash.substr(pos + 1);
}
if (hash.length) {
// remove hash sign
return hash.substr(1);
}
return '';
},