title: How to set array URL query param in Vue with Vue-Router
body: <p>I am trying to set array query params with Vue-router, but I can't find a solution. </p>
  
  <p>Currently the result is </p>
  
  <pre><code>http://localhost:8080/#/locations?page=1&amp;categories=1&amp;categories=2&amp;categories=3
  </code></pre>
  
  <p>But my results should look like this</p>
  
  <pre><code>http://localhost:8080/#/locations?page=1&amp;categories[]=1,2,3
  </code></pre>
  
  <p>This is my html</p>
  
  <pre><code>&lt;router-link :to="{ path: 'locations', query: { page: 1, categories: [1,2,3] }}"&gt;
      {{ $root.trans.translate("locations") }}
  &lt;/router-link&gt;
  </code></pre>
  
  <p>Can you please tell me what do I need to do so my URL will be printed out as I wanted. If you need any additional informations, please let me know and i will provide. Thank you!</p>