emberjs / emberjs/ember.js

[3.15] Query Params "Aliasing" Broken

Open
#18,672 2 comments 2 reactions 0 assignees View on GitHub
Has Reproduction Query Params Routing
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

As [discussed in the guides](https://guides.emberjs.com/release/routing/query-params/#toc_map-a-controllers-property-to-a-different-query-param-key) one can map a query parameter to a different value on their controller. This appears to be broken in Ember 3.15.

Reproduction app: https://github.com/jherdman/query-params-sadness

* **Second commit "Aliasing: Broken"**. Click the links, note that the query parameter does not change. Setting the query parameter `p` manually does not work either.
* **Third commit: "Work Around"**. Current work around I'm using, though this does not handle default values at all.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.