fix error for chinese url join

This commit is contained in:
chiu 2024-10-17 03:13:29 +00:00
parent eddb6f0d53
commit 9fd98b7888
1 changed files with 3 additions and 3 deletions

View File

@ -235,7 +235,7 @@ class SiteFeedAnnc
if !tmp["link_to_show"].blank? && tmp["link_to_show"].start_with?("/")
tmp["link_to_show"] = "#{tmp["source_url"]}#{tmp["link_to_show"])}"
tmp["link_to_show"] = "#{tmp["source_url"]}#{tmp["link_to_show"]}"
end
@ -382,7 +382,7 @@ class SiteFeedAnnc
end
if tmp["link_to_show"].nil?
tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ?
URI.join("#{tmp["source_url"]}/#{locale}",URI.encode("#{tmp["show_url"]}")).to_s :
"#{tmp["source_url"]}/#{locale}#{tmp["show_url"]}" :
is_widget ? OrbitHelper.widget_item_url(tmp["params"]) : OrbitHelper.url_to_show(tmp["params"])
end
tmp