X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4168e0963ee19e05c07b40d30e868fd652fd3757..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 } %>