]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/geocoder_helper.rb
Don't include stack backtraces on xml errors when importing traces
[rails.git] / app / helpers / geocoder_helper.rb
index 1826b08a4f269354e52d44f7eb8d1ca0cd50e7ff..882f2c8354eb73e2415371b54a8871d0b1359386 100644 (file)
@@ -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