mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-16 02:42:34 +03:00
* fix(ui): skip the login form when already signed in Opening #/login while signed in always showed the login form, so a bookmarked or browser-autocompleted login URL asked for the password on every visit although the stored session was still valid. Redirect to the app when checkAuth succeeds, as react-admin's default login page does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kris Anderson <1562427+kris-anderson@users.noreply.github.com> * fix(ui): replace the login history entry on redirect Pushing / left #/login one step back in history, so pressing Back landed on the login page, which redirected forward again and kept the user from returning to the previous page. Replace the entry instead. Raised in review by Codex. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kris Anderson <1562427+kris-anderson@users.noreply.github.com> * chore(ui): shorten the login redirect comment Background moved here from the code comment: react-admin's default login page sends an already signed-in user to the app, and Navidrome's custom Login.jsx had dropped that check. Opening #/login from a bookmark or the browser's autocomplete therefore showed the password form although the stored session was still valid. The redirect uses replace so Back returns to the previous page instead of landing on #/login again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kris Anderson <1562427+kris-anderson@users.noreply.github.com> --------- Signed-off-by: Kris Anderson <1562427+kris-anderson@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Deluan Quintão <deluan@navidrome.org>