angular/angular.js — pull request #3010 by vavd (2013-06-19 19:29:59+00:00)
Title: fix($location): search should expand array values properly

Calling kind of $location.search('foo', [1,2]) results in a query like "/path/d/#/?foo=1,2"
which is undesirable. This commit enhance $location to build url like "/path/d/#/?foo=1&foo=2".
At the same time calling $location.search() will give {foo: [1,2]}.