Skip to content

Router. createQueryParams is failing when called with array #16310

Closed

Description

@WiseBird

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

When using query parameter with multiple values in redirectTo, e.g.:

  {
    path: '',
    redirectTo: '/list?param=true&param=false',
    pathMatch: 'full'
  }

error TypeError: v.startsWith is not a function is thrown when app tries to redirect.

Expected behavior

App should be redirected.

Minimal reproduction of the problem with instructions

Check plunker

What is the motivation / use case for changing the behavior?

This is a bug

  • Angular version: 4.0.3

Activity

  1. added a commit that references this issue on May 8, 2017
    5d4b36f
  2. added a commit that references this issue on May 10, 2017
    915eae5
  3. added a commit that references this issue on Jun 8, 2017
    716b891
  4. added a commit that references this issue on Aug 11, 2017
    ef2f205
  5. added a commit that references this issue on Aug 28, 2017
    56a4710
  6. angular-automatic-lock-bot commented on Sep 11, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 11, 2019
  8. added a commit that references this issue on Nov 20, 2026
    0a3b6e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions