Fix wopi file download URL [SCI-3757] (#1975)

This commit is contained in:
Alex Kriuchykhin 2019-08-14 09:06:00 +02:00 committed by aignatov-bio
parent 737f9e572c
commit 960e69eaa8

View file

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