Merge branch '3781-browser-friendly-servers' refs #3781
[arvados.git] / apps / workbench / app / controllers / links_controller.rb
1 class LinksController < ApplicationController
2   def show
3     if @object.link_class == 'name' and
4         Collection == ArvadosBase::resource_class_for_uuid(@object.head_uuid)
5       return redirect_to collection_path(@object.uuid)
6     end
7     super
8   end
9 end