FIX: Use correct variable name (#49)

FIX: Use correct variable name (#49)

This is a follow up to commit discourse/discourse@57624983917 and e437b603bd26d3913de557e8eb8175d810f974dd.

diff --git a/assets/javascripts/discourse/initializers/discourse-voting.js.es6 b/assets/javascripts/discourse/initializers/discourse-voting.js.es6
index 708e84c..7c791ca 100644
--- a/assets/javascripts/discourse/initializers/discourse-voting.js.es6
+++ b/assets/javascripts/discourse/initializers/discourse-voting.js.es6
@@ -15,10 +15,10 @@ export default {
             return category && category.can_vote;
           },
           customHref: (category, args) => {
-            const currentFilterType = (args.filterMode || "").split("/").pop();
+            const currentFilterType = (args.filterType || "").split("/").pop();
             const path = NavItem.pathFor(currentFilterType, args);
 
-            return `${path.replace(/\/l\/$/, "")}?order=votes`;
+            return `${path}?order=votes`;
           },
           forceActive: (category, args, router) => {
             const queryParams = router.currentRoute.queryParams;

GitHub sha: ec327491