X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/98bfaace9aeba7fb387596cc16b2e661506173c6..87c845b668d69d472d2fb1d373dc8e03d6f77291:/app/helpers/geocoder_helper.rb 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