aurelia / cli

The Aurelia 1 command line tool. Use the CLI to create projects, scaffold components, and bundle your app for release.
MIT License
407 stars 133 forks source link

bundles are not loaded for pushState #1195

Closed HIRANO-Satoshi closed 2 years ago

HIRANO-Satoshi commented 2 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior:

aurelia-cli generates settings for pushState as follows on webpack.config.js. When we reload a page with a deep URL, bundles are not loaded.

   const baseUrl = '';
   historyApiFallback: true,

Here is an explanation.

output.publicPath: should be an absolute path. So, baseUrl has to be '/' instead of ''.

   const baseUrl = '/';
   historyApiFallback: true,
3cp commented 2 years ago

Thx! Fixed.