Skip to content

$location.search not handling arrays when visiting the page by using a link with an array #832

@ysong10

Description

@ysong10

To reproduce:

  1. Visit this fiddle:http://fiddle.jshell.net/w3e2x/5/show/
    • Notice how the array is handled: as a javascript array ("q":[1,2,3,4])
  2. Now visit this same fiddle giving the same array as a parameter: http://fiddle.jshell.net/w3e2x/5/show/#?q=1,2,3,4
    • You might want to open a new window to make sure the page will be reloaded
    • Now notice how the arguments are shown, as a string: "q":"1,2,3,4"

The expected behavior would be:

On case 2, $location should return the search arguments as a javascript array ("q":[1,2,3,4]) instead of as a string with objects separated by commas ("q":"1,2,3,4").

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions