X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a557cb9634a4b08e4338faa2e737ce0db808c98b..42c20b25e1325124b88e3b9b285544dc41122b56:/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..b79fad4a6c 100644 --- a/apps/workbench/app/controllers/links_controller.rb +++ b/apps/workbench/app/controllers/links_controller.rb @@ -1,2 +1,13 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + 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