Commit c2ba868c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #2954 from cabeca/fix-image-url-emoji

Fix image url for emoji.
parents f22488f7 157b0386
......@@ -164,7 +164,8 @@ module ApplicationHelper
end
def image_url(source)
root_url + path_to_image(source)
# prevent relative_root_path being added twice (it's part of root_url and path_to_image)
root_url.sub(/#{root_path}$/, path_to_image(source))
end
alias_method :url_to_image, :image_url
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment