Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

How to programatically setup default query params after model?

$
0
0

@tsteuwer wrote:

Here’s the deal:

You’re able to set default values for query params, so that when the query param matches the original value, ember removes it from the URL. I need to be able to programatically set these after I get the model back. Is there a way to do this in Ember or are you not allowed?

Example:

http://my-site.com/category

The default page which people can filter on and updates query params. But, lets say I also have:

http://my-site.com/category/3-stars

I want to be able to set the default query params as 3-star so that when I reset the query params, the default 3 star is still there, but the others are gone.

please note: These urls are generated by humans and so thats why I need to be able to set them programatically. THeres many other default params they can use for these SEO urls.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles