mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 13:29:42 +08:00
721ee36425
DEV: Replace instances of Discourse.base_uri with Discourse.base_path
This is clearer because the base_uri is actually just a path prefix. This continues the work started in 555f467
.
18 lines
408 B
Ruby
18 lines
408 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ConfigurableUrls
|
|
|
|
def faq_path
|
|
SiteSetting.faq_url.blank? ? "#{Discourse.base_path}/faq" : SiteSetting.faq_url
|
|
end
|
|
|
|
def tos_path
|
|
SiteSetting.tos_url.blank? ? "#{Discourse.base_path}/tos" : SiteSetting.tos_url
|
|
end
|
|
|
|
def privacy_path
|
|
SiteSetting.privacy_policy_url.blank? ? "#{Discourse.base_path}/privacy" : SiteSetting.privacy_policy_url
|
|
end
|
|
|
|
end
|