mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: add clean support for running Discourse in a subfolder
To setup set DISCOURSE_RELATIVE_URL_ROOT to the folder you wish
This commit is contained in:
@ -7,7 +7,7 @@ class CategoriesController < ApplicationController
|
||||
skip_before_filter :check_xhr, only: [:index, :redirect]
|
||||
|
||||
def redirect
|
||||
redirect_to "/c/#{params[:path]}"
|
||||
redirect_to path("/c/#{params[:path]}")
|
||||
end
|
||||
|
||||
def index
|
||||
|
Reference in New Issue
Block a user