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]
|
# @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
|
||||||
|
|
Loading…
Reference in a new issue