mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 11:41:16 +08:00
FIX: badge description links broken on subfolder
This commit is contained in:
parent
d1f257d275
commit
d753adab84
@ -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)
|
||||
|
@ -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 <a href="/my/preferences">profile</a> information
|
||||
description: Filled out <a href="%{base_uri}/my/preferences">profile</a> information
|
||||
long_description: |
|
||||
This badge is granted for filling out <a href="/my/preferences">your user profile</a> 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 <a href="%{base_uri}/my/preferences">your user profile</a> 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 <a href="/guidelines">community guidelines</a>
|
||||
description: Read the <a href="%{base_uri}/guidelines">community guidelines</a>
|
||||
long_description: |
|
||||
This badge is granted for <a href="/guidelines">reading the community guidelines</a>. 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 <a href="%{base_uri}/guidelines">reading the community guidelines</a>. 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user