La URL termina en / por defecto
This commit is contained in:
parent
df29c4ca95
commit
e6ea1001cd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue