From d753adab84553949dc0b5864988cd0fc62aa18fc Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 31 Oct 2017 15:18:52 -0400 Subject: [PATCH] FIX: badge description links broken on subfolder --- app/models/badge.rb | 4 ++-- config/locales/server.en.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/badge.rb b/app/models/badge.rb index f8c41e7db19..96938ec4ead 100644 --- a/app/models/badge.rb +++ b/app/models/badge.rb @@ -197,7 +197,7 @@ class Badge < ActiveRecord::Base def long_description key = "badges.#{i18n_name}.long_description" - I18n.t(key, default: self[:long_description] || '') + I18n.t(key, default: self[:long_description] || '', base_uri: Discourse.base_uri) end def long_description=(val) @@ -207,7 +207,7 @@ class Badge < ActiveRecord::Base def description key = "badges.#{i18n_name}.description" - I18n.t(key, default: self[:description] || '') + I18n.t(key, default: self[:description] || '', base_uri: Discourse.base_uri) end def description=(val) diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 2ee6ce1c635..de77b20115b 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -3265,9 +3265,9 @@ en: This badge is granted when you receive your first like on a post. Congratulations, you've posted something that your fellow community members found interesting, cool, or useful! autobiographer: name: Autobiographer - description: Filled out profile information + description: Filled out profile information long_description: | - This badge is granted for filling out your user profile and selecting a profile picture. Letting the community know a bit more about who you are and what you're interested in makes for a better, more connected community. Join us! + This badge is granted for filling out your user profile and selecting a profile picture. Letting the community know a bit more about who you are and what you're interested in makes for a better, more connected community. Join us! anniversary: name: Anniversary description: Active member for a year, posted at least once @@ -3360,9 +3360,9 @@ en: This badge is granted the first time you quote a post in your reply. Quoting relevant sections of earlier posts in your reply helps keep discussions connected together and on topic. The easiest way to quote is to highlight a section of a post, and then press any reply button. Quote generously! read_guidelines: name: Read Guidelines - description: Read the community guidelines + description: Read the community guidelines long_description: | - This badge is granted for reading the community guidelines. Following and sharing these simple guidelines helps build a safe, fun, and sustainable community for everyone. Always remember there's another human being, one very much like yourself, on the other side of that screen. Be nice! + This badge is granted for reading the community guidelines. Following and sharing these simple guidelines helps build a safe, fun, and sustainable community for everyone. Always remember there's another human being, one very much like yourself, on the other side of that screen. Be nice! reader: name: Reader description: Read every reply in a topic with more than 100 replies