Change the way the orig_url is passed to fb

This commit is contained in:
Christophe Vilayphiou committed 2012-08-08 11:04:19 +08:00
1 parent 4bed925e0f
commit 6cfdf0f25a
3 files changed
+3 -3

No files matched your search

@@ -9,7 +9,7 @@ window.SocialShareButton =
img = encodeURIComponent($(el).parent().data("img"))
fb_url = encodeURIComponent($(el).parent().data("fb_url"))
url = encodeURIComponent(location.href)
fb_full_url = encodeURIComponent("#{fb_url}?orig_url=#{location.href}")
fb_full_url = encodeURIComponent("#{fb_url}?orig_host=#{location.host}&orig_path=#{location.pathname}")
switch site
when "weibo"
SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&pic=#{img}&title=#{title}&content=utf-8")