11167: Removed unnecessary conditional
[arvados.git] / apps / workbench / app / controllers / collections_controller.rb
index dcd47e1414d275a4071a532ddc4527356a2fac7c..5fcb2dc569ff6b2446c602dc26de61a069155ba2 100644 (file)
@@ -234,11 +234,7 @@ class CollectionsController < ApplicationController
 
   def download_link
     token = @search_sharing.first.api_token
-    if Rails.configuration.keep_web_url || Rails.configuration.keep_web_download_url
-      keep_web_url(@object.uuid, nil, {path_token: token})
-    else
-      collections_url + "/download/#{@object.uuid}/#{token}/"
-    end
+    keep_web_url(@object.uuid, nil, {path_token: token})
   end
 
   def share