<p>In app/controllers/geocoder_controller.rb:</p>
<pre style='color:#555'>> @@ -177,11 +177,17 @@ def search_osm_nominatim
>        prefix = t "geocoder.search_osm_nominatim.prefix_format", :name => prefix_name
>        object_type = place.attributes["osm_type"].to_s
>        object_id = place.attributes["osm_id"].to_s
> +      if object_type != ''
> +        suffix = " [<a href='browse/%s/%s'>%s</a>]" % [ object_type, object_id, t ("browse.%s_history.view_details" % object_type) ]
</pre>
<p>You need to get rid of the space in <code>t (</code> for this to work - without that change I just get syntax errors from ruby.</p>

<p>That said, you should be using <code>link_to</code> here rather than constructing the link by hand like that. That's hard to do in the controller, but then I think this is better done by changing <code>result_to_html</code> in <code>app/helpers/geocoder_helper.rb</code> anyway, and <code>link_to</code> is readily available there, so you can do something like:</p>

<pre><code>link_to(t("browse.#{result[:type]}_history.view_details"), :controller => :browse, :action => result[:type], :id => result[:id])
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/250/files#r4087048'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOprYMu38rnF7Y8gVU4hYNDe28FuuoM2bqouoJV866CfuC.gif' height='1' width='1'></p>