Skip to content

Reconfigure the router #1824

Description

@schiltpuzzle

Description

We used to have Query Param for the selected teams. Angular displays multiple values like this: teams=1&teams=2&teams=3. This leads to long and unreadable URLs. We didn't want this, therefore we split the values by a , . This looks like this: teams=1,2,3.

Every time we want to access the team's query params, we have to use split(',') to get every single ID and join(',') to set them.

Centralize this behavior in the Angular router so that the router returns a list of string arrays. The ID shouldn't be parsed in the router. The router should expect ["1", "2", "3"] instead of "1,2,3"

Acceptance Criteria

  • router returns array of strings
  • router has a input of string arrays
  • additional tests are written

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions