Previously, when an unauthenticated user clicked the "Console" navigation link, the application would first attempt to navigate to '/console'. This would then trigger a redirect to '/login', causing a brief flicker between the two pages. This commit modifies the `renderNavLinks` function in `HeaderBar.js` to proactively check the user's authentication status. If the user is not logged in and clicks the "Console" link, the navigation target is directly set to '/login', avoiding the intermediate redirect and eliminating the flickering effect.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| components | Loading commit data... | |
| constants | Loading commit data... | |
| context | Loading commit data... | |
| helpers | Loading commit data... | |
| i18n | Loading commit data... | |
| images | Loading commit data... | |
| pages | Loading commit data... | |
| App.js | Loading commit data... | |
| index.css | Loading commit data... | |
| index.js | Loading commit data... |