angular/angular.js — pull request #2522 by joshkurz (2013-04-26 21:45:25+00:00)
Title: feature(urlKeyValue): not rewriting duplicate params in url

parseKeyValue and toKeyValue can work with duplicates:
1) parseKeyValue looks for presence of obj[key]
2) detects and replaces obj[key] with [obj[key],val]
3) then pushes more duplicates if neccessary
4) toKeyValue decodes array correctly
5)(not changed) $location.search({param: 'key'}) still replaces if neccessary
6)(not changed) $location.search({param: ['key','key2']}) sets the url with duplicates

**BREAKING CHANGE**: the url parameter duplicates are not rewritten anymore.
This will only effect deeplinks. Deeplinks in current apps that depend on
rewriting the duplicates will break. The deeplinks should
be changes to appear how they should look after angular strips the duplicates.