Skip to content

How to configure routing when working with Electron & Web

Nathan Walker edited this page Mar 1, 2019 · 1 revision

When using Angular routing you can use the modern HTML5 push state routing resolution (non "hash") you are commonly used to these days. However when packaging an Electron app for distribution this can cause problems since it's loading an index.html file within the Electron app.

Take a look at this example which shows how to properly configure your web app to handle both: https://github.com/nstudio/xplat-sample-electron-routing

Clone this wiki locally