mardi 18 août 2015

Prevent adding queryParams to browser history with ember

I tried removing queryParams from adding to my url when I transition between routes but failed miserably. I did what was told in the docs.

queryParams: {
    status: {
        refreshModel: true,
        replace: true
    },
    itemCount: {
        refreshModel: true,
        replace: true
    },
    email: {
        replace: true
    }
}

That didn't work.

I did this in m link-to helper as well :

{{#link-to 'conversations' subuser.email (query-params email=subuser.email status='opened') replace=true}}

... and that didn't work as well. Ember keeps adding the params to the url, any suggestions?




Aucun commentaire:

Enregistrer un commentaire