utils.js: Use a regex to identify the uri fragment

This commit is contained in:
Johannes Meyer 2020-01-15 07:58:49 +01:00
parent 7f8ee4f94d
commit e45c18c833
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@
* @returns {string}
*/
addUrlFlag: function (url, flag) {
var pos = url.lastIndexOf('#');
var pos = url.search(/#(?!!)/);
if (url.indexOf('?') !== -1) {
flag = '&' + flag;