Skip to content

Commit

Permalink
Ensures that download URLs for Work assets prepend the "/describe" path
Browse files Browse the repository at this point in the history
(this fixes an urgent bug in production)
  • Loading branch information
jrgriffiniii committed Mar 21, 2024
1 parent fe93d89 commit c015093
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/decorators/work_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def file_list_path
def download_path
return if @work.nil? || !@work.persisted?

work_download_path(@work.id)
if Rails.env.production? || Rails.env.staging?
"/describe" + work_download_path(@work.id)
else
work_download_path(@work.id)
end
end
end

0 comments on commit c015093

Please sign in to comment.