fix: redirect root / to /platform/ for better UX
All checks were successful
CI / build (push) Successful in 42s
CI / docker (push) Successful in 6s

Users hitting the root URL now get redirected to the SaaS app instead
of seeing Logto's unknown-session page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-05 23:13:20 +02:00
parent 4997f7a6a9
commit d32a03bb7b

View File

@@ -147,6 +147,13 @@ services:
- traefik.http.routers.saas.entrypoints=websecure
- traefik.http.routers.saas.tls=true
- traefik.http.services.saas.loadbalancer.server.port=8080
- traefik.http.routers.root-redirect.rule=Path(`/`)
- traefik.http.routers.root-redirect.entrypoints=websecure
- traefik.http.routers.root-redirect.tls=true
- traefik.http.routers.root-redirect.middlewares=root-to-platform
- traefik.http.routers.root-redirect.service=saas
- traefik.http.middlewares.root-to-platform.redirectregex.regex=^/$
- traefik.http.middlewares.root-to-platform.redirectregex.replacement=/platform/
networks:
- cameleer