Skip to content

Commit

Permalink
fix(webpack): fix wrong url contact
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-ritti committed Jul 29, 2022
1 parent a6f1b3c commit 249bbc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agence-adeliom/lumberjack-extensions",
"version": "2.2.2",
"version": "2.2.3",
"description": "",
"keywords": [
"adeliom",
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/WebpackEncore.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ private function getAssets(string $name, string $entrypoint, array $config): arr

private static function getUrl(string $asset): string
{
$themeUrl = get_theme_file_uri();
$asset = str_replace(parse_url($themeUrl, PHP_URL_PATH), "", $asset);
return get_theme_file_uri($asset);
}

Expand Down

0 comments on commit 249bbc8

Please sign in to comment.