Use action_name instead of URI path as the default breadcrumb page name.
[arvados.git] / apps / workbench / app / controllers / application_controller.rb
index e94428e92dca51ad00e415f38dac8ff69c35c4ef..9cb17169ad8dcb3c80392100727e3f7d7917bf63 100644 (file)
@@ -147,7 +147,8 @@ class ApplicationController < ActionController::Base
 
   def breadcrumb_page_name
     (@breadcrumb_page_name ||
-     (@object.friendly_link_name if @object.respond_to? :friendly_link_name))
+     (@object.friendly_link_name if @object.respond_to? :friendly_link_name) ||
+     action_name)
   end
 
   def index_pane_list