Fix: Redirect from CI Status Link
Version: 3.0.0 Date: 2026-05-07
Goal: When clicking the CI status link (Bitbucket/GitHub/GitLab), the user should see the login screen and then be redirected to the correct task detail page — not a "Not Found" page.
Solution: The backend was generating /dashboard/${uuid} URLs that didn't match any frontend route. Added a protected /dashboard/:uuid route with a loader that redirects to /dashboard/git/:uuid or /dashboard/ftp/:uuid. The backend now emits typed URLs directly.
Implementation Details:
- Front route
GET /dashboard/:uuid: protected like other routes → login redirect with?redirect=...if unauthenticated; loader callsgetTask(uuid)thenredirect(getLinkDetail(task))or/dashboardon error getTaskUrl(uuid, kind?: 'git'|'ftp')in backend: returns${url}/dashboard/${kind}/${uuid}, defaults to'git'for backward compatibility
Files Modified:
ui/src/routes.tsx- Route/dashboard/:uuid,taskRedirectLoader,redirect/getTask/getLinkDetailimportssrc/core/configuration/configuration.service.ts-getTaskUrl(uuid, kind?)with git/ftp segment