Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix($location): search should expand array values properly #3010

Closed
wants to merge 1 commit into from
Closed

fix($location): search should expand array values properly #3010

wants to merge 1 commit into from

Conversation

vavd
Copy link

@vavd vavd commented Jun 19, 2013

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]}.

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]}.
@petebacondarwin
Copy link
Contributor

Duplicate of #2522

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants