import Ember from 'ember';
import ResetScrollMixin from '../mixins/reset-scroll';
import Analytics from '../mixins/analytics';

export default Ember.Route.extend(Analytics, ResetScrollMixin, {
    queryParams: {
        queryString: {
            replace: true
        }
    },
    model() {
        return this
            .get('store')
            .findAll('preprint-provider', { reload: true })
            .then(result => result.filter(item => item.id !== 'osf'));
    },
});

@@ -469,12 +469,363 @@
 %0A    %7D,%0A
+    actions: %7B%0A        willTransition() %7B%0A            //Don't want to send clearFIlters action as that will trigger%0A            //behavior specifc to the clearFIlters button.%0A            let controller = this.controllerFor('discover');%0A            controller.set('subjectFilter', '');%0A            controller.set('providerFilter', '');%0A        %7D%0A    %7D%0A
 %7D);%0A

clear the url params on link-to transition: