Skip to content

Commit

Permalink
fix replacement issue on Windows (#4480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Sep 18, 2020
1 parent eb843dd commit b5b5514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/ThemeModule/Engine/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function __construct(
*/
public function resolve(string $path): string
{
$publicDir = $this->kernel->getProjectDir() . '/public';
$publicDir = str_replace('\\', '/', $this->kernel->getProjectDir()) . '/public';
$basePath = $this->router->getContext()->getBaseUrl();
$httpRootDir = str_replace($basePath, '', $publicDir);

Expand Down

0 comments on commit b5b5514

Please sign in to comment.