mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 05:53:52 +08:00
Rename /category/xyz
paths to /c/xyz
-- @SamSaffron did most of the
work even though I'm merging the patch!
This commit is contained in:
@ -2,9 +2,13 @@ require_dependency 'category_serializer'
|
||||
|
||||
class CategoriesController < ApplicationController
|
||||
|
||||
before_filter :ensure_logged_in, except: [:index, :show]
|
||||
before_filter :ensure_logged_in, except: [:index, :show, :redirect]
|
||||
before_filter :fetch_category, only: [:show, :update, :destroy]
|
||||
skip_before_filter :check_xhr, only: [:index]
|
||||
skip_before_filter :check_xhr, only: [:index, :redirect]
|
||||
|
||||
def redirect
|
||||
redirect_to "/c/#{params[:path]}"
|
||||
end
|
||||
|
||||
def index
|
||||
@description = SiteSetting.site_description
|
||||
|
Reference in New Issue
Block a user