]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Remove fixed relative path for assets
authorKevin Decherf <kevin@kdecherf.com>
Wed, 20 Dec 2017 20:53:11 +0000 (21:53 +0100)
committerKevin Decherf <kevin@kdecherf.com>
Wed, 20 Dec 2017 20:53:48 +0000 (21:53 +0100)
app/AppKernel.php
app/config/webpack/common.js

index 90e9f1d8d91470efe228396fb1d29bd3362a86a0..c065d282ccbce430118a31f42d87c3157c6b53fc 100644 (file)
@@ -79,6 +79,14 @@ class AppKernel extends Kernel
                    ],
                ]);
             }
+            else
+            {
+                $container->loadFromExtension('framework', [
+                    'assets' => [
+                        'base_url' => $container->getParameter('domain_name'),
+                    ]
+                ]);
+            }
         });
     }
 }
index 47113950bdcaf4d38fdce425f6593012cfce5cdf..233497fd7b8ce1eb29cd81d23e63898f0b781181 100644 (file)
@@ -14,7 +14,7 @@ module.exports = function () {
     output: {
       filename: '[name].js',
       path: path.resolve(rootDir, 'web/wallassets'),
-      publicPath: '/wallassets/',
+      publicPath: '',
     },
     plugins: [
       new webpack.ProvidePlugin({