FIX: Relative links in translations should work with subfolder
This commit is contained in:
parent
762300ab22
commit
c9ff8d8cb6
|
@ -92,7 +92,7 @@ en:
|
|||
group_mention_template: "mentions of: @%{name}"
|
||||
group_message_template: "messages to: @%{name}"
|
||||
|
||||
admin_error: "Some chat integration channels have errors. Visit <a href='/admin/plugins/chat'>the chat integration section</a> to find out more."
|
||||
admin_error: "Some chat integration channels have errors. Visit <a href='%{base_path}/admin/plugins/chat'>the chat integration section</a> to find out more."
|
||||
|
||||
provider:
|
||||
|
||||
|
|
|
@ -29,7 +29,11 @@ after_initialize do
|
|||
DiscourseChat::Channel.find_each do |channel|
|
||||
error = true unless channel.error_key.blank?
|
||||
end
|
||||
I18n.t("chat_integration.admin_error") if error
|
||||
|
||||
if error
|
||||
base_path = Discourse.respond_to?(:base_path) ? Discourse.base_path : Discourse.base_uri
|
||||
I18n.t("chat_integration.admin_error", base_path: base_path)
|
||||
end
|
||||
end
|
||||
|
||||
DiscourseChat::Provider.mount_engines
|
||||
|
|
Loading…
Reference in New Issue