From a19c1823df14252ecbfe84197e5e0d7eaef51fbd Mon Sep 17 00:00:00 2001 From: "Michael B. Klein" Date: Wed, 31 Jul 2024 23:09:33 +0000 Subject: [PATCH] One-byte sitemap fix --- app/lib/meadow/utils/sitemap.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/meadow/utils/sitemap.ex b/app/lib/meadow/utils/sitemap.ex index 367220df2..52b153d6c 100644 --- a/app/lib/meadow/utils/sitemap.ex +++ b/app/lib/meadow/utils/sitemap.ex @@ -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),