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']),