diff --git a/frontend/custom_version_strategy.rst b/frontend/custom_version_strategy.rst index 10bb4c3dfcf..ba56f1f7689 100644 --- a/frontend/custom_version_strategy.rst +++ b/frontend/custom_version_strategy.rst @@ -94,13 +94,7 @@ version string:: return $path; } - $versionized = sprintf($this->format, ltrim($path, '/'), $version); - - if ($path && '/' === $path[0]) { - return '/'.$versionized; - } - - return $versionized; + return sprintf($this->format, $path, $version); } private function loadManifest()