X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2479319b7859d9b271dc8900e5d530c77976025a..5e26b33235bab027f25f98afb8db8980f3603b0b:/app/helpers/geocoder_helper.rb?ds=sidebyside diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index 1826b08a4..882f2c835 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -1,9 +1,9 @@ module GeocoderHelper def result_to_html(result) - html_options = { :class => "set_position", :data => {} } + 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