Commit b50fd52ad1e3a1178757ea61d26e96628f7d59ae
1 parent
8ffea7e4
Exists in
master
and in
8 other branches
Fix url generation problem with custom domain
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
views/content_viewer/discussion_topics.html.erb
... | ... | @@ -7,10 +7,10 @@ |
7 | 7 | |
8 | 8 | <% if discussion.allow_create?(user) %> |
9 | 9 | <div class="actions"> |
10 | - <%= link_to({:controller => 'cms', :action => 'new', :type => "ProposalsDiscussionPlugin::Topic", :parent_id => discussion.id}, :class => 'button with-text icon-add') do %> | |
10 | + <%= link_to({:controller => 'cms', :action => 'new', :type => "ProposalsDiscussionPlugin::Topic", :parent_id => discussion.id, :profile => profile.identifier}, :class => 'button with-text icon-add') do %> | |
11 | 11 | <strong><%= _("New Topic") %></strong> |
12 | 12 | <% end %> |
13 | - <%= link_to({:controller => :proposals_discussion_plugin_profile, :action => :export, :format => :csv, :article_id => discussion.id}, :class => 'button with-text icon-spread') do %> | |
13 | + <%= link_to({:controller => :proposals_discussion_plugin_profile, :action => :export, :format => :csv, :article_id => discussion.id, :profile => profile.identifier}, :class => 'button with-text icon-spread') do %> | |
14 | 14 | <strong><%= _('Export') %></strong> |
15 | 15 | <% end %> |
16 | 16 | </div> | ... | ... |
views/content_viewer/topic.html.erb
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 | </div> |
24 | 24 | |
25 | 25 | <div class="topic actions"> |
26 | - <%= link_to url_for({:controller => 'cms', :action => 'new', :type => "ProposalsDiscussionPlugin::Proposal", :parent_id => topic.id}), :class => 'button with-text icon-add' do %> | |
26 | + <%= link_to url_for({:controller => 'cms', :action => 'new', :type => "ProposalsDiscussionPlugin::Proposal", :parent_id => topic.id, :profile => profile.identifier}), :class => 'button with-text icon-add' do %> | |
27 | 27 | <strong><%= _("Send your proposal") %></strong> |
28 | 28 | <% end %> |
29 | 29 | </div> | ... | ... |