title: How do I force browser not to convert 'comma' to 2C symbols using JS?
body: <p>I'm changing current user's path through a function:</p>
  
  <pre><code>function setSomeValue(someValues) {
        var query = '';
        for (var i = 0; i &lt; someValues.length; i++) {
          query += someValues[i] + ',';
        }
        if ('URLSearchParams' in window) {
          var searchParams = new URLSearchParams(window.location.search);
          searchParams.set("paramName", query);
  
          var newRelativePathQuery = window.location.pathname + '?' + searchParams.toString();
          history.pushState(null, '', newRelativePathQuery);
        }
      }
  </code></pre>
  
  <p>As you can see, I'm adding to user's location new words and want new location to be like this:</p>
  
  <pre><code>www.site.com?paramName=value1,value2,
  </code></pre>
  
  <p>But browser converts my commas into <code>%2C</code> so I get this:</p>
  
  <pre><code>www.site.com?paramName=value1%2Cvalue2%2C
  </code></pre>
  
  <p>What should be done to make pushing commas to URL possible?</p>
  
  <hr>