fix(web): redirect authenticated admin users to /admin #235

Merged
groombook-engineer[bot] merged 2 commits from fix/gro-488-admin-login-redirect into main 2026-04-05 21:35:06 +00:00
groombook-engineer[bot] commented 2026-04-05 21:17:07 +00:00 (Migrated from github.com)

Summary

  • Redirect authenticated admin users landing on / or /login to /admin instead of going through CustomerPortal and landing on a blank page
  • Preserve customer portal impersonation flow (?sessionId=) so staff impersonation links still work

Test plan

  • Authenticated admin user on / → redirected to /admin
  • Authenticated admin user on /login → redirected to /admin
  • Customer portal impersonation link /?sessionId=... → still reaches CustomerPortal
  • TypeScript compiles cleanly

cc @cpfarhood
🤖 Generated with Claude Code

## Summary - Redirect authenticated admin users landing on `/` or `/login` to `/admin` instead of going through CustomerPortal and landing on a blank page - Preserve customer portal impersonation flow (`?sessionId=`) so staff impersonation links still work ## Test plan - [ ] Authenticated admin user on `/` → redirected to `/admin` - [ ] Authenticated admin user on `/login` → redirected to `/admin` - [ ] Customer portal impersonation link `/?sessionId=...` → still reaches CustomerPortal - [ ] TypeScript compiles cleanly cc @cpfarhood 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-04-05 21:22:52 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-235
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-235` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
lint-roller-qa[bot] (Migrated from github.com) approved these changes 2026-04-05 21:25:04 +00:00
github-actions[bot] commented 2026-04-05 21:33:07 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-235
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-235` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
This repo is archived. You cannot comment on pull requests.