Commit a089c0d949226a3cce1677afee9018ccd51bd304

Authored by Victor Costa
1 parent a5ed5f1e
Exists in master

Fix link url

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/pairwise_plugin/helpers/viewer_helper.rb
@@ -117,13 +117,13 @@ module PairwisePlugin::Helpers::ViewerHelper @@ -117,13 +117,13 @@ module PairwisePlugin::Helpers::ViewerHelper
117 def pairwise_result_link(label, pairwise_content, embeded = false, options = {}) 117 def pairwise_result_link(label, pairwise_content, embeded = false, options = {})
118 link_target = pairwise_content.result_url 118 link_target = pairwise_content.result_url
119 link_target.merge!(:embeded => 1) if embeded 119 link_target.merge!(:embeded => 1) if embeded
120 - link_to label, link_target, options 120 + link_to label, link_target.merge(:profile => pairwise_content.profile.identifier), options
121 end 121 end
122 122
123 def pairwise_tab_remote_link(label, link_target, pairwise_content, embeded = false, options = {}) 123 def pairwise_tab_remote_link(label, link_target, pairwise_content, embeded = false, options = {})
124 link_target.merge!(:embeded => 1) if embeded 124 link_target.merge!(:embeded => 1) if embeded
125 loading_javascript = pairwise_spinner_show_function_call(pairwise_content) + pairwise_hide_skip_call(pairwise_content) 125 loading_javascript = pairwise_spinner_show_function_call(pairwise_content) + pairwise_hide_skip_call(pairwise_content)
126 - link_to_remote label, :loading => loading_javascript, :url => link_target, :html => options 126 + link_to_remote label, :loading => loading_javascript, :url => link_target.merge(:profile => pairwise_content.profile.identifier), :html => options
127 end 127 end
128 128
129 def pairwise_suggestion_url(question, embeded = false, source = nil) 129 def pairwise_suggestion_url(question, embeded = false, source = nil)