La URL termina en / por defecto

This commit is contained in:
f 2021-08-14 20:12:30 -03:00
parent df29c4ca95
commit e6ea1001cd

View file

@ -44,8 +44,8 @@ class Site
# @param :slash [Boolean] # @param :slash [Boolean]
# @return [String] # @return [String]
def canonical_url(slash: true) def canonical_url(slash: true)
canonical_deploy.url.tap do |url| canonical_deploy.url.dup.tap do |url|
"#{url}/" if slash url << '/' if slash
end end
end end
alias_method :url, :canonical_url alias_method :url, :canonical_url