Skip to content

Assertion Failed: You're not allowed to have more than one controller property map to the same query param key #13258

@Arkham

Description

@Arkham

Hi there,

I just updated one of my apps to v2.4.4 and I saw this error popping up:

Error while processing route: other Assertion Failed: You're not allowed to have more
than one controller property map to the same query param key, but both
`application:perPage` and `application:perPage` map to `per_page`. You can fix this
by mapping one of the controller properties to a different query param key via the `as`
config option, e.g. `perPage: { as: 'other-perPage' }`

The weird thing is that it appears that the error is referring to the same queryParam. If I revert this commit (#13202) the code works as intended.

Here is an ember twiddle reproducing the error: https://ember-twiddle.com/23c9bc41197b73fc8874a35b04c1a635

The setup I've been running is:

Ember      : 2.4.4
Ember Data : 2.4.3
jQuery     : 1.11.3

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