Skip to content

Commit

Permalink
One-byte sitemap fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Jul 31, 2024
1 parent 7723133 commit a19c182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/meadow/utils/sitemap.ex
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ defmodule Meadow.Utils.Sitemap do
defp generate_index(config) do
with date <- Date.utc_today() |> to_string(),
gz_url <-
config[:sitemap_url] |> URI.parse() |> URI.merge("sitemap.xml.gz") |> URI.to_string() do
config[:sitemap_url] |> Path.join("sitemap.xml.gz") do
XmlBuilder.element(:urlset, %{xmlns: "http://www.sitemaps.org/schemas/sitemap/0.9"}, [
XmlBuilder.element(:url, [
XmlBuilder.element(:loc, gz_url),
Expand Down

0 comments on commit a19c182

Please sign in to comment.