url for uncategorized category topic list is always /category/uncategorized

This commit is contained in:
Neil Lalonde 2013-05-29 12:06:21 -04:00
parent f151b30044
commit b1bdebd611
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class ListController < ApplicationController
list = nil list = nil
# If they choose uncategorized, return topics NOT in a category # 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 list = query.list_uncategorized
else else
@category = Category.where("slug = ? or id = ?", params[:category], params[:category].to_i).includes(:featured_users).first @category = Category.where("slug = ? or id = ?", params[:category], params[:category].to_i).includes(:featured_users).first