I’m trying to use Electron to package an app I wrote using Angular 2. With Angular 2 it generates a single index.html file and a bunch of js code that loads the various “pages”. In a browser you access a page via parameters added to the URL. So for example…
goes to my launch page and
goes to a settings page
what I would like to do is make it so my Electron exe loads the settings page when it starts with a specific CLI flag. How do I load the index.html from a file, then redirect to a URL that’s relative to that?