url for uncategorized category topic list is always /category/uncategorized
This commit is contained in:
parent
f151b30044
commit
b1bdebd611
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue