From: Tom Clegg Date: Fri, 30 Jun 2017 18:34:21 +0000 (-0400) Subject: 8784: Add token to path (not query string) in download links. X-Git-Tag: 1.1.0~155^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/1b8d669706fb952f0e5d1ad5e407073f4815907f 8784: Add token to path (not query string) in download links. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/apps/workbench/app/controllers/collections_controller.rb b/apps/workbench/app/controllers/collections_controller.rb index 3752bec7be..625a6a8f61 100644 --- a/apps/workbench/app/controllers/collections_controller.rb +++ b/apps/workbench/app/controllers/collections_controller.rb @@ -285,7 +285,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, {query_token: token}) + keep_web_url(@object.uuid, nil, {path_token: token}) else collections_url + "/download/#{@object.uuid}/#{token}/" end