Skip to content

fix: redirect GET / to /ui dashboard#327

Merged
BYK merged 1 commit into
mainfrom
fix/redirect-root-to-ui
May 14, 2026
Merged

fix: redirect GET / to /ui dashboard#327
BYK merged 1 commit into
mainfrom
fix/redirect-root-to-ui

Conversation

@BYK
Copy link
Copy Markdown
Owner

@BYK BYK commented May 14, 2026

Summary

  • GET / previously returned a useless 404 JSON error, which is confusing when opening the gateway URL in a browser
  • Now returns a 302 redirect to /ui where the dashboard lives
  • Uses 302 (not 301) to avoid aggressive browser/proxy caching

Details

Single 4-line change in packages/gateway/src/server.ts — inserts a redirect handler just before the 404 catch-all. No risk of conflict with existing routes since all API routes (/v1/*) and /health are matched by exact equality earlier in the chain.

Root path returned a useless 404 JSON error, which was confusing
when opening the gateway URL in a browser. Now returns a 302
redirect to /ui where the dashboard lives.
@BYK BYK merged commit eaddab9 into main May 14, 2026
12 of 13 checks passed
@BYK BYK deleted the fix/redirect-root-to-ui branch May 14, 2026 21:13
@craft-deployer craft-deployer Bot mentioned this pull request May 14, 2026
6 tasks
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

Successfully merging this pull request may close these issues.

1 participant