X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a557cb9634a4b08e4338faa2e737ce0db808c98b..57991d19a58903863194043717b2875417a40fe7:/apps/workbench/app/controllers/links_controller.rb diff --git a/apps/workbench/app/controllers/links_controller.rb b/apps/workbench/app/controllers/links_controller.rb index 78529c149a..fd51fb1616 100644 --- a/apps/workbench/app/controllers/links_controller.rb +++ b/apps/workbench/app/controllers/links_controller.rb @@ -1,2 +1,9 @@ class LinksController < ApplicationController + def show + if @object.link_class == 'name' and + Collection == ArvadosBase::resource_class_for_uuid(@object.head_uuid) + return redirect_to collection_path(@object.uuid) + end + super + end end