Fix mail_to
This commit is contained in:
parent
377aa41a23
commit
028c3ec480
|
@ -133,8 +133,8 @@ module Middleman
|
|||
uri = URI(url)
|
||||
url_path = uri.path
|
||||
|
||||
if url_path
|
||||
path = Pathname(url_path)
|
||||
|
||||
url_path = current_source_dir.join(path).to_s if path.relative?
|
||||
|
||||
resource = sitemap.find_resource_by_path(url_path)
|
||||
|
@ -170,6 +170,7 @@ module Middleman
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
super(*args, &block)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue