Skip to content

Commit

Permalink
Clear out extra slashes we don't need
Browse files Browse the repository at this point in the history
  • Loading branch information
netikular committed Jul 25, 2024
1 parent c7ffc38 commit 90e11c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dato_cms_graphql/bridgetown/query_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90e11c4

Please sign in to comment.