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

Application always starts up in the About view #39

Open
stevekallal opened this issue Nov 23, 2023 · 1 comment
Open

Application always starts up in the About view #39

stevekallal opened this issue Nov 23, 2023 · 1 comment

Comments

@stevekallal
Copy link

I've been able to get the demo app up and running with the latest ElectronNET.API v23.6.1 and Dotnet Core 6.0.417 SDK on Windows 10 Pro. But it always starts up in the About view. The Home Controller does load first and then the About Controller also. The Home view contains a menu with all the other menus. But it doesn't render before redirecting to About. The only route in the code is in the Startup class. I'm trying to determine the cause of the redirect to About.

Has anyone had this issue and fixed it?

@stevekallal
Copy link
Author

I found a workaround for my issue. At the bottom of wwwroot/assets/nav.js, I did a small modification.

I changed
setTimeout(() => { activateDefaultSection(); displayAbout(); }, 350);

to

setTimeout(() => { activateDefaultSection(); showNav(); }, 350);

I find it puzzling that displayAbout() is called on startup. There is NO way from the About view to navigate to the Home view from the UI. In any case I found a workaround to show the Home view on startup. But I have to wonder if there's a different root cause?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant