X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/62ba143c3c0b7608dcd41f9604fe35ca22d126b4..d85ff252047fe3ed1d5354b5542afaf92bb753cf:/app/helpers/geocoder_helper.rb?ds=sidebyside diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index f819c1ac5..882f2c835 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -3,7 +3,7 @@ module GeocoderHelper html_options = { :class => "set_position stretched-link", :data => {} } url = if result[:type] && result[:id] - url_for(:controller => :browse, :action => result[:type], :id => result[:id]) + url_for(:controller => result[:type].pluralize, :action => :show, :id => result[:id]) elsif result[:min_lon] && result[:min_lat] && result[:max_lon] && result[:max_lat] "/?bbox=#{result[:min_lon]},#{result[:min_lat]},#{result[:max_lon]},#{result[:max_lat]}" else