Skip to content

Commit

Permalink
fix file download link (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull authored Feb 13, 2025
1 parent abd4d0e commit 60d191c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dotcom_web/controllers/event_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@ defmodule DotcomWeb.EventController do
title
|> String.downcase()
|> String.replace(" ", "_")
|> decode_ampersand_html_entity
|> URI.encode_www_form()
|> decode_ampersand_html_entity()
end

@spec decode_ampersand_html_entity(String.t()) :: String.t()
defp decode_ampersand_html_entity(string) do
String.replace(string, "&", "&")
String.replace(string, "%26", "&")
end

@doc "Returns a list of years with which we can filter events.
Expand Down

0 comments on commit 60d191c

Please sign in to comment.