Merge stable
This commit is contained in:
commit
2403fa2d81
17 changed files with 184 additions and 15 deletions
|
@ -283,7 +283,7 @@ module Middleman
|
|||
if path_or_resource.is_a?(::Middleman::Sitemap::Resource)
|
||||
resource = path_or_resource
|
||||
resource_url = url
|
||||
elsif this_resource && uri.path
|
||||
elsif this_resource && uri.path && !uri.host
|
||||
# Handle relative urls
|
||||
url_path = Pathname(uri.path)
|
||||
current_source_dir = Pathname('/' + this_resource.path).dirname
|
||||
|
@ -299,7 +299,7 @@ module Middleman
|
|||
resource = app.sitemap.find_resource_by_destination_path(url_path.to_s)
|
||||
resource_url = resource.url if resource
|
||||
end
|
||||
elsif options[:find_resource] && uri.path
|
||||
elsif options[:find_resource] && uri.path && !uri.host
|
||||
resource = app.sitemap.find_resource_by_path(uri.path)
|
||||
resource_url = resource.url if resource
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue