Skip to content

Commit

Permalink
Set filename with download attribute on link
Browse files Browse the repository at this point in the history
Closes #205.
  • Loading branch information
dersmon committed Jun 26, 2024
1 parent 7412a48 commit fb94e64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ defmodule FieldPublicationWeb.Presentation.DocumentComponents.Image do
</.group_heading>
<ul class="ml-0 list-none">
<li>
<a target="_blank" href={~p"/api/image/raw/#{@project_name}/#{@uuid}"}>
<a download={@doc["identifier"]} href={~p"/api/image/raw/#{@project_name}/#{@uuid}"}>
<.icon name="hero-photo-solid" /> Download original
</a>
</li>
Expand Down

0 comments on commit fb94e64

Please sign in to comment.