diff --git a/app/assets/javascripts/discourse/models/topic_list.js b/app/assets/javascripts/discourse/models/topic_list.js index 583538cbadd..8a926588af0 100644 --- a/app/assets/javascripts/discourse/models/topic_list.js +++ b/app/assets/javascripts/discourse/models/topic_list.js @@ -210,6 +210,15 @@ Discourse.TopicList.reopenClass({ } session.setProperties({topicList: null, topicListScrollPosition: null}); + // Clean up any string parameters that might slip through + params = params || {}; + Ember.keys(params).forEach(function(k) { + var val = params[k]; + if (val === "undefined" || val === "null" || val === 'false') { + params[k] = undefined; + } + }); + var findParams = {}; Discourse.SiteSettings.top_menu.split('|').forEach(function (i) { if (i.indexOf(filter) === 0) {