mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 15:51:05 +08:00
DEV: update base url links to respect subfolder installs (#27740)
This change eliminates a couple of instances where subfolder urls are badly formatted, in most cases we can use Discourse.base_url_no_prefix to prevent adding the subfolder to the base url.
This commit is contained in:
@ -171,7 +171,9 @@ module Email
|
||||
|
||||
if topic
|
||||
if SiteSetting.private_email?
|
||||
@message.header["List-Archive"] = "#{Discourse.base_url}#{topic.slugless_url}"
|
||||
@message.header[
|
||||
"List-Archive"
|
||||
] = "#{Discourse.base_url_no_prefix}#{topic.slugless_url}"
|
||||
else
|
||||
@message.header["List-Archive"] = topic.url
|
||||
end
|
||||
|
Reference in New Issue
Block a user