From e8694faad64502f6f20526bb2505de69032ed4a8 Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Wed, 20 Dec 2017 21:53:11 +0100 Subject: Remove fixed relative path for assets --- app/AppKernel.php | 8 ++++++++ app/config/webpack/common.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/AppKernel.php b/app/AppKernel.php index 90e9f1d8..c065d282 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -79,6 +79,14 @@ class AppKernel extends Kernel ], ]); } + else + { + $container->loadFromExtension('framework', [ + 'assets' => [ + 'base_url' => $container->getParameter('domain_name'), + ] + ]); + } }); } } diff --git a/app/config/webpack/common.js b/app/config/webpack/common.js index 47113950..233497fd 100644 --- a/app/config/webpack/common.js +++ b/app/config/webpack/common.js @@ -14,7 +14,7 @@ module.exports = function () { output: { filename: '[name].js', path: path.resolve(rootDir, 'web/wallassets'), - publicPath: '/wallassets/', + publicPath: '', }, plugins: [ new webpack.ProvidePlugin({ -- cgit v1.2.3