emberjs / emberjs/ember.js

Calling urlFor() Doesn't Handle Query Params With serializeQueryParam()

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

Description

I have an object as one of my query-params, and serialization and deserialization works fine through serializeQueryParam and deserializeQueryParam; both linkTo and transitionToRoute work correctly with this query-param. However, calling router.urlFor() to check what the URL would be with the new query-param returns prior to serializeQueryParam being called, resulting in an incorrectly serialized query-param. Since both linkTo and transitionToRoute correctly route with this query-param, I expected router.urlFor() to work the same.

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.