diff --git a/app/models/concerns/with_git.rb b/app/models/concerns/with_git.rb index 467a750ff3d774764f3c5d34a95df1b258dcb9c0..3fc35c5cc54cbfc550d4014934caaa4193763327 100644 --- a/app/models/concerns/with_git.rb +++ b/app/models/concerns/with_git.rb @@ -16,7 +16,12 @@ module WithGit # Handle legacy language-less websites # TODO I18n: Right now, we use the language of the website. It HAS TO get the language from the object including this concern. path = "content/" - path += "#{website.languages.first.iso_code}/" if website.languages.any? + if website.languages.many? + # todo totalement arbitraire + path += "fr/" + else + path += "#{website.languages.first.iso_code}/" + end path end