X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9a7e246102f3e40471d2f5e5ed1fbf4a3f50ba94..1fe70eb6519ee21eae6cc4ba9df59b11dcef6466:/app/views/browse/_common.rhtml
diff --git a/app/views/browse/_common.rhtml b/app/views/browse/_common.rhtml
index ec590bda0..83dadd641 100644
--- a/app/views/browse/_common.rhtml
+++ b/app/views/browse/_common.rhtml
@@ -5,8 +5,8 @@ Deleted
<% end %>
<% if obj.visible %>
-- <%= link_to h("API"), :controller => "api/#{API_VERSION}/"+type, :id => obj.id %>
+- <%= link_to h("API"), :controller => type, :action => "read", :id => obj.id %>
<% end %>
-- <%= link_to h("History"), :controller => "api/#{API_VERSION}/"+type, :id => obj.id, :action => "history" %>
+- <%= link_to h("History"), :controller => "old_" + type, :action => "history", :id => obj.id %>
<%= render :partial => 'common_editedby', :locals => { :obj => obj } %>