diff --git a/apps/fabro-web/app/components/automation-form.tsx b/apps/fabro-web/app/components/automation-form.tsx index b4c6b3115..d2c820e30 100644 --- a/apps/fabro-web/app/components/automation-form.tsx +++ b/apps/fabro-web/app/components/automation-form.tsx @@ -161,7 +161,7 @@ export function AutomationFormFields({ ) : ( <> Identifier used in the URL:{" "} - /automation/{values.id || ""} + /automations/{values.id || ""} ) } diff --git a/apps/fabro-web/app/router.tsx b/apps/fabro-web/app/router.tsx index 5ce144034..3ad211ed4 100644 --- a/apps/fabro-web/app/router.tsx +++ b/apps/fabro-web/app/router.tsx @@ -113,6 +113,8 @@ export const routes: RouteObject[] = [ route("automations", Automations), route("automations/new", AutomationsNew), route("automations/:id/edit", AutomationsEdit), + route("automations/:id", AutomationDetail), + // Backwards-compatible singular automation route used by older links. route("automation/:id", AutomationDetail), route("runs", Runs), route("runs/:id", RunDetail, { diff --git a/apps/fabro-web/app/routes/automations.tsx b/apps/fabro-web/app/routes/automations.tsx index e6c510085..7cb32b59f 100644 --- a/apps/fabro-web/app/routes/automations.tsx +++ b/apps/fabro-web/app/routes/automations.tsx @@ -119,7 +119,7 @@ function AutomationCard({ const Icon = automation.icon; return (
- +