Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuration for initial navigation #650

Open
jwerle opened this issue Oct 6, 2023 · 3 comments
Open

Support configuration for initial navigation #650

jwerle opened this issue Oct 6, 2023 · 3 comments
Assignees
Labels
config An issue, discussion, or pull request related to application config discussion

Comments

@jwerle
Copy link
Member

jwerle commented Oct 6, 2023

We should support configuring an initial navigation URI in the socket.ini:

[window.navigator]
location = "socket:https://com.app/path/to/index.html"

or

[window.navigator]
location = "/index.html"

or

[window.navigator]
location = "/" # implies /index.html
@jwerle jwerle added the config An issue, discussion, or pull request related to application config label Oct 6, 2023
@jwerle jwerle self-assigned this Oct 6, 2023
@ansarizafar
Copy link

Currently we can see a jerk when index.html loads in app window.We should be able to show a custom spinner while loading index.html and other assets.

@davidmyersdev
Copy link

The lack of configuration here is a problem for some SPA frameworks that use client-side routing (such as Nuxt). Unless I manually configure the path /index.html, Nuxt shows a 404 when the app initially loads. At the very least, being able to configure / as the default could solve this problem.

@jwerle
Copy link
Member Author

jwerle commented Oct 13, 2023

You can try this:

[webview]
default_index = "/index.html"

This will be loaded for any type of page navigation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config An issue, discussion, or pull request related to application config discussion
Projects
None yet
Development

No branches or pull requests

5 participants