aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/public_body/show.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/public_body/show.rhtml')
-rw-r--r--app/views/public_body/show.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/public_body/show.rhtml b/app/views/public_body/show.rhtml
index e6fe61a0a..c1deea762 100644
--- a/app/views/public_body/show.rhtml
+++ b/app/views/public_body/show.rhtml
@@ -48,9 +48,9 @@
<% make = 'make' %>
<% end %>
<% if @public_body.eir_only? %>
- <%= link_to make + " a new Environmental Information request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
+ <%= link_to make + " a new Environmental Information request", new_request_to_body_url(:url_name => @public_body.url_name)%>
<% else %>
- <%= link_to make + " a new Freedom of Information request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
+ <%= link_to make + " a new Freedom of Information request", new_request_to_body_url(:url_name => @public_body.url_name)%>
<% end %>
to <%= h(@public_body.name) %>
<% elsif @public_body.has_notes? %>