utils.js: Use a regex to identify the uri fragment
This commit is contained in:
parent
7f8ee4f94d
commit
e45c18c833
|
@ -219,7 +219,7 @@
|
|||
* @returns {string}
|
||||
*/
|
||||
addUrlFlag: function (url, flag) {
|
||||
var pos = url.lastIndexOf('#');
|
||||
var pos = url.search(/#(?!!)/);
|
||||
|
||||
if (url.indexOf('?') !== -1) {
|
||||
flag = '&' + flag;
|
||||
|
|
Loading…
Reference in New Issue