diff --git a/app/models/site.rb b/app/models/site.rb index 7a8b4b4b..4af85d82 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -104,9 +104,8 @@ class Site < ApplicationRecord # # @return Array def alternative_hostnames - deploys.where(type: 'DeployAlternativeDomain').map(&:hostname).map do |h| - h.end_with?('.') ? h[0..-2] : "#{h}.#{Site.domain}" - end + deploys.where(type: 'DeployAlternativeDomain').map(&:hostname) + + deploys.where(type: 'DeployWww').map(&:fqdn) end # Obtiene todas las URLs alternativas para este sitio