diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-15 14:03:52 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-15 14:03:52 +0100 |
commit | 45790564769efa860b48166e86e770fc4b44dcf5 (patch) | |
tree | 0aa4accadc233cb3dab882666fbf7272c8340c32 | |
parent | 477be05661d2cd3a550510f898d8d1d222d1598f (diff) | |
download | gitlab-ce-45790564769efa860b48166e86e770fc4b44dcf5.tar.gz |
Fixed tests with params being wrongissue-boards-label-filtering
-rw-r--r-- | app/assets/javascripts/lib/utils/common_utils.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index 2eab6f975bb..7e62773ae6c 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -135,7 +135,10 @@ gl.utils.getUrlParamsArray = function () { // We can trust that each param has one & since values containing & will be encoded // Remove the first character of search as it is always ? - return window.location.search.slice(1).split('&').map(param => decodeURI(param)); + return window.location.search.slice(1).split('&').map((param) => { + const split = param.split('='); + return [decodeURI(split[0]), split[1]].join('='); + }); }; gl.utils.isMetaKey = function(e) { |