mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:07:17 +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:
@ -23,6 +23,10 @@ module ApplicationHelper
|
||||
end
|
||||
end
|
||||
|
||||
def path(path)
|
||||
"#{GlobalSetting.relative_url_root}#{path}"
|
||||
end
|
||||
|
||||
def script(*args)
|
||||
if SiteSetting.enable_cdn_js_debugging && GlobalSetting.cdn_url
|
||||
tags = javascript_include_tag(*args, "crossorigin" => "anonymous")
|
||||
|
Reference in New Issue
Block a user