diff --git a/CHANGELOG.md b/CHANGELOG.md index 9144b63a4..08df31fa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ 1. [](#bugfix) * Remove disabled fields from the form schema * Fix issue when excluding `inlineJs` and `inlineCss` from Assets pipeline [#2468](https://github.com/getgrav/grav/issues/2468) + * Fix for manually set position on external URLs [#2470](https://github.com/getgrav/grav/issues/2470) # v1.6.6 ## 04/17/2019 diff --git a/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php index ca58b7440..82d395921 100644 --- a/system/src/Grav/Common/Assets.php +++ b/system/src/Grav/Common/Assets.php @@ -267,21 +267,6 @@ class Assets extends PropertyObject protected function filterAssets($assets, $key, $value, $sort = false) { $results = array_filter($assets, function($asset) use ($key, $value) { - - if ($key === 'position' && $value === 'pipeline') { - - $type = $asset->getType(); - - if ($asset->getRemote() && $this->{$type . '_pipeline_include_externals'} === false) { - if ($this->{$type . '_pipeline_before_excludes'}) { - $asset->setPosition('after'); - } else { - $asset->setPosition('before'); - } - return false; - } - - } if ($asset[$key] === $value) return true; return false; });