Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / controllers / links_controller.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class LinksController < ApplicationController
6   def show
7     if @object.link_class == 'name' and
8         Collection == ArvadosBase::resource_class_for_uuid(@object.head_uuid)
9       return redirect_to collection_path(@object.uuid)
10     end
11     super
12   end
13 end