+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class LinksController < ApplicationController
- before_filter :ensure_current_user_is_admin
+ 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