From: Anton Khorev Date: Sat, 16 Mar 2024 01:51:42 +0000 (+0300) Subject: Don't pass paths to element_single_current_link helper X-Git-Tag: live~722^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/927cc9f45e6626e2a82403d1263b4a16d601e30b Don't pass paths to element_single_current_link helper --- diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index 53e980fdc..d3e8f10f9 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -1,6 +1,6 @@ module BrowseHelper - def element_single_current_link(type, object, url) - link_to url, { :class => element_class(type, object), :title => element_title(object), :rel => (link_follow(object) if type == "node") } do + def element_single_current_link(type, object) + link_to object, { :class => element_class(type, object), :title => element_title(object), :rel => (link_follow(object) if type == "node") } do element_strikethrough object do printable_element_name object end diff --git a/app/views/browse/_node.html.erb b/app/views/browse/_node.html.erb index e395a4283..4e2ae0343 100644 --- a/app/views/browse/_node.html.erb +++ b/app/views/browse/_node.html.erb @@ -17,7 +17,7 @@ <%= t "browse.part_of_ways", :count => node.ways.uniq.count %> diff --git a/app/views/browse/_way.html.erb b/app/views/browse/_way.html.erb index 19c5ff590..d015438fe 100644 --- a/app/views/browse/_way.html.erb +++ b/app/views/browse/_way.html.erb @@ -27,12 +27,12 @@