4523: Merge branch '4523-search-index' of git.curoverse.com:arvados into 4523-search...
[arvados.git] / apps / workbench / app / controllers / links_controller.rb
index 78529c149a984880a0270f5ad9baadca0de4106b..fd51fb161614c36ec137f84948ec49631be61e2c 100644 (file)
@@ -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