diff --git a/src/Symfony/Component/Asset/PathPackage.php b/src/Symfony/Component/Asset/PathPackage.php index 1fd9926b31..e3cc56c0f7 100644 --- a/src/Symfony/Component/Asset/PathPackage.php +++ b/src/Symfony/Component/Asset/PathPackage.php @@ -53,11 +53,7 @@ class PathPackage extends Package */ public function getUrl($path) { - if ($this->isAbsoluteUrl($path)) { - return $path; - } - - $versionedPath = $this->getVersionStrategy()->applyVersion($path); + $versionedPath = parent::getUrl($path); // if absolute or begins with /, we're done if ($this->isAbsoluteUrl($versionedPath) || ($versionedPath && '/' === $versionedPath[0])) {