- <%= link_to(t('browse.download_xml'), :controller => @type.pluralize, :action => :show) %>
- ·
- <%= link_to(t('browse.view_history'), :action => "#{@type}_history") %>
+ <% if @feature.visible? %>
+ <%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
+ ·
+ <% end %>
+ <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>