FIX: id is always true since it's been to_i'd

FIX: id is always true since it’s been to_i’d

Let’s only look up the category if the id has been provided

diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb
index 7a3caaabdf..e7c0de86dc 100644
--- a/app/controllers/list_controller.rb
+++ b/app/controllers/list_controller.rb
@@ -360,7 +360,7 @@ class ListController < ApplicationController
     @category = Category.query_category(slug_or_id, parent_category_id)
 
     # Redirect if we have `/c/:parent_category/:category/:id`
-    if id
+    if params.include?(:id)
       category = Category.find_by_id(id)
       (redirect_to category.url, status: 301) && return if category
     end

GitHub sha: 594925b8