2019-05-02 17:17:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-05-01 10:48:42 -05:00
|
|
|
module ConfigurableUrls
|
2013-06-27 11:10:43 -05:00
|
|
|
def faq_path
|
2020-10-09 06:51:24 -05:00
|
|
|
SiteSetting.faq_url.blank? ? "#{Discourse.base_path}/faq" : SiteSetting.faq_url
|
2013-06-27 11:10:43 -05:00
|
|
|
end
|
|
|
|
|
2013-05-01 10:48:42 -05:00
|
|
|
def tos_path
|
2020-10-09 06:51:24 -05:00
|
|
|
SiteSetting.tos_url.blank? ? "#{Discourse.base_path}/tos" : SiteSetting.tos_url
|
2013-05-01 10:48:42 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def privacy_path
|
2023-01-09 06:10:19 -06:00
|
|
|
if SiteSetting.privacy_policy_url.blank?
|
|
|
|
"#{Discourse.base_path}/privacy"
|
|
|
|
else
|
|
|
|
SiteSetting.privacy_policy_url
|
|
|
|
end
|
2013-05-01 10:48:42 -05:00
|
|
|
end
|
2015-04-24 12:10:43 -05:00
|
|
|
end
|