From c30618310472672bb81c132553b636cb928d35d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 23 Jan 2023 10:32:47 +0100
Subject: [PATCH] fix

---
 app/controllers/admin/communication/websites_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/admin/communication/websites_controller.rb b/app/controllers/admin/communication/websites_controller.rb
index 90585acd3..34f8f7252 100644
--- a/app/controllers/admin/communication/websites_controller.rb
+++ b/app/controllers/admin/communication/websites_controller.rb
@@ -85,7 +85,7 @@ class Admin::Communication::WebsitesController < Admin::Communication::Websites:
   def default_url_options
     options = {}
     if @website.present?
-      options[:lang] = current_website_language.iso_code if @website.languages.many?
+      options[:lang] = current_website_language.iso_code if @website.languages.any?
     end
     options
   end
-- 
GitLab