]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/_location.html.erb
Fix handling of title when replying to diary entries
[rails.git] / app / views / diary_entry / _location.html.erb
index a3ba473a8a67e54f11e08cfc79f314e9b3a4201a..a5db0cdca949be7df2846819f6b75f47fb71a311 100644 (file)
@@ -1,6 +1,6 @@
 <%= t 'diary_entry.location.location' %>
 
-<a href="<%= url_for :controller => 'site', :action => 'index', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %>">
+<a href="<%= url_for :controller => 'site', :action => 'index', :anchor => "map=14/#{location.latitude}/#{location.longitude}" %>">
 <abbr class="geo" title="<%= number_with_precision(location.latitude, :precision => 4) %>; <%= number_with_precision(location.longitude, :precision => 4) %>">
 <%= describe_location location.latitude, location.longitude, 14, location.language_code %>
 </abbr>