#How to change the Application URL
9 messages · Page 1 of 1 (latest)
If you need to change the URL that the window is on, you can run a function for that specific window.
As an example:
mainWindow.loadUrl('https://github.com/')
As for deep linking, I think the name needs to be unique to your application's name.
Like if it was called "Designer Toyware", it would be something like designer-toyware probably.
@kind wharf thanks for the reply -- a few follow up thoughts...
right now it appears electron is serving everything from app:// e.g., app://<my_page>.html
There is a loadURL call in main; mainWindow.loadURL('app://./_app.html'), but if I switch it to mainWindow.loadURL('designer-toyware://./_app.html' the application fails to launch
I don't understand what is setting app://, when running in dev it is localhost
I think it may be related to the application getting built into an app directory and then calling serve({ directory: 'app' });. So I probably need to change that build directory if I want to have everything serve from designer-toyware://
any idea where that is configured?
I think it is in some NextJS config .. I am using NextJS