resolves #1653 don't rewrite paths that start with //
This commit is contained in:
parent
3cd84eb4d1
commit
4995bd23d7
3 changed files with 7 additions and 3 deletions
|
@ -333,7 +333,7 @@ module Middleman
|
|||
asset_path = $2
|
||||
|
||||
uri = ::Addressable::URI.parse(asset_path)
|
||||
if uri.relative? && result = yield(asset_path)
|
||||
if uri.relative? && uri.host.nil? && (result = yield(asset_path))
|
||||
"#{opening_character}#{result}"
|
||||
else
|
||||
match
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue