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]
# @return [String]
def canonical_url(slash: true)
canonical_deploy.url.tap do |url|
"#{url}/" if slash
canonical_deploy.url.dup.tap do |url|
url << '/' if slash
end
end
alias_method :url, :canonical_url