Skip to content

Commit

Permalink
return $assetUrl dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mskocik committed Feb 10, 2023
1 parent b956b04 commit 8cbda07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function __construct(
}
}

$this->basePath = $httpRequest->getUrl()->getBasePath();
$assetPath = str_replace('manifest.json', '', $manifestFile);
$this->basePath = $httpRequest->getUrl()->getBasePath() . ltrim($assetPath, '/');
}

/**
Expand Down

0 comments on commit 8cbda07

Please sign in to comment.