From b1bdebd6115e05bf3900cd8fbd3cae5794f7e6d5 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 29 May 2013 12:06:21 -0400 Subject: [PATCH] url for uncategorized category topic list is always /category/uncategorized --- app/controllers/list_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 4e8176f3521..69e879ed023 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -32,7 +32,7 @@ class ListController < ApplicationController list = nil # If they choose uncategorized, return topics NOT in a category - if params[:category] == Slug.for(SiteSetting.uncategorized_name) or params[:category] == SiteSetting.uncategorized_name or params[:category] == 'null-category' + if params[:category] == 'uncategorized' list = query.list_uncategorized else @category = Category.where("slug = ? or id = ?", params[:category], params[:category].to_i).includes(:featured_users).first