X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f3cb3c6246e6e271761e714cceb081e85a4d245..be8d76926cb5e1cc5f9d3f81bda80e716f75a59d:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fcf253289..ff6dcd2ff 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -37,7 +37,8 @@ module ApplicationHelper if content_for? :body_class content_for :body_class else - "#{params[:controller]} #{params[:controller]}-#{params[:action]}" + controller_part = params[:controller].tr("/", "-") + "#{controller_part} #{controller_part}-#{params[:action]}" end end