From 960e69eaa88404bc1c89926ab2df42cdef407328 Mon Sep 17 00:00:00 2001 From: Alex Kriuchykhin Date: Wed, 14 Aug 2019 09:06:00 +0200 Subject: [PATCH] Fix wopi file download URL [SCI-3757] (#1975) --- app/controllers/wopi_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/wopi_controller.rb b/app/controllers/wopi_controller.rb index e081cb8b5..9e65909d1 100644 --- a/app/controllers/wopi_controller.rb +++ b/app/controllers/wopi_controller.rb @@ -68,7 +68,7 @@ class WopiController < ActionController::Base UserCanWrite: @can_write, UserCanNotWriteRelative: true, CloseUrl: @close_url, - DownloadUrl: url_for(controller: 'assets', action: 'download', + DownloadUrl: url_for(controller: 'assets', action: 'file_url', id: @asset.id, host: ENV['WOPI_USER_HOST']), HostEditUrl: url_for(controller: 'assets', action: 'edit', id: @asset.id, host: ENV['WOPI_USER_HOST']),