emberjs / emberjs/ember.js

Route#paramsFor doesn't have proper params for deeply nested routes

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

Description

This screenshot summarizes the issue better than words can:

screen shot 2016-12-27 at 1 57 43 am

In this scenario, `this.paramsFor(this.routeName)` returns `queryParamsFor`, which has the default values for the query params. However, `fullQueryParams` has the correct values, as backed by `queryParams`.

I boiled it down to [this Ember Twiddle](https://ember-twiddle.com/5cf56d0b934a05cd450bb77334723c2c?openFiles=routes.three.four.five.path.js%2C&route=%2Fone%2Fnot-two%2Fsome-slug%2Ffour%2Fthe-segment%2Fpath%2Fnew-subpath). The issue seems to either be related to deeply nested routes or `resetNamespace`.

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.