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

+1 -1
View File
@@ -110,7 +110,7 @@ class ApplicationController < ActionController::Base
def render_share
object_class = params[:model].classify.constantize
@object = object_class.find(params[:id])
@orig_url = params[:orig_url]
@orig_url = "http://#{params[:orig_host]}/#{params[:orig_path]}"
render 'shared/render_share', :layout => false
end