Skip to content

Commit f1d14c7

Browse files
authored
Do not modify the query string if there are no params to add
1 parent f302e4a commit f1d14c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/flow.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,10 @@
12831283
* @returns {string}
12841284
*/
12851285
getTarget: function(target, params){
1286+
if (params.length == 0) {
1287+
return target;
1288+
}
1289+
12861290
if(target.indexOf('?') < 0) {
12871291
target += '?';
12881292
} else {

0 commit comments

Comments
 (0)