diff --git a/app/models/site.rb b/app/models/site.rb index 58f20745..d9778de7 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -384,7 +384,9 @@ class Site < ApplicationRecord # Si estamos usando nuestro propio plugin de i18n, los posts están # en "colecciones" locales.map(&:to_s).each do |i| - @configuration['collections'][i] = {} + @configuration['collections'][i] = { + 'permalink' => default_locale.to_s == i ? config['permalink'] : [nil, i, config['permalink']].join('/') + } end @configuration