Commit bb7a57a
fix(webapp): use redirectWithErrorMessage for project-not-found in runs loader
Match the convention used by every other dashboard route (batches,
sessions, schedules): redirect to "/" with a toast on missing project,
rather than rendering a bare 404. The environment-not-found branch
remains a 404 via throwNotFound, since all peer routes for that case
were previously broken (bare Error → 500) and are now consistent.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 27b65fc commit bb7a57a
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
- apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs._index
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
0 commit comments