From 90e11c4eb5595848e2e1e514ec2118c2aa09f672 Mon Sep 17 00:00:00 2001 From: Kevin Pratt Date: Thu, 25 Jul 2024 16:12:09 -0600 Subject: [PATCH] Clear out extra slashes we don't need --- lib/dato_cms_graphql/bridgetown/query_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dato_cms_graphql/bridgetown/query_builder.rb b/lib/dato_cms_graphql/bridgetown/query_builder.rb index de8b2ce..79528be 100644 --- a/lib/dato_cms_graphql/bridgetown/query_builder.rb +++ b/lib/dato_cms_graphql/bridgetown/query_builder.rb @@ -15,7 +15,7 @@ def build I18n.available_locales.each do |locale| I18n.with_locale(locale) do query.all.each do |item| - permalink = "#{locale_path(locale)}#{item.permalink}/" + permalink = "#{locale_path(locale)}#{item.permalink}/".gsub("//", "/") add_resource query.plural_name.underscore, "#{item.id}.erb" do result item