fix error for chinese url join

This commit is contained in:
chiu 2024-10-17 02:15:33 +00:00
parent d3a027bb1f
commit eddb6f0d53
1 changed files with 2 additions and 2 deletions

View File

@ -234,8 +234,8 @@ class SiteFeedAnnc
tmp["source-site-title"] = self.channel_title(locale)
if !tmp["link_to_show"].blank?
tmp["link_to_show"] = URI.join(tmp["source_url"],URI.encode(tmp["link_to_show"])).to_s
if !tmp["link_to_show"].blank? && tmp["link_to_show"].start_with?("/")
tmp["link_to_show"] = "#{tmp["source_url"]}#{tmp["link_to_show"])}"
end