Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: redirect to recent instead of authenticated root
Brad Barbine47377f309ad
diff --git a/apps/carbon/app/routes/x+/settings+/company.switch.$companyId.tsx b/apps/carbon/app/routes/x+/settings+/company.switch.$companyId.tsxindex 3dd1876aab..e2aba5f878 100644--- a/apps/carbon/app/routes/x+/settings+/company.switch.$companyId.tsx+++ b/apps/carbon/app/routes/x+/settings+/company.switch.$companyId.tsx@@ -32,7 +32,7 @@ export async function action({ request, params }: ActionFunctionArgs) {await destroyAuthSession(request);}- throw redirect(requestReferrer(request) ?? path.to.authenticatedRoot, {+ throw redirect(path.to.authenticatedRoot, {headers: {"Set-Cookie": await updateCompanySession(request, companyId!),},diff --git a/apps/mes/app/routes/x+/jobs.$workCenterId.tsx b/apps/mes/app/routes/x+/jobs.$workCenterId.tsxindex 7afcd7d7d6..63660ecdeb 100644--- a/apps/mes/app/routes/x+/jobs.$workCenterId.tsx+++ b/apps/mes/app/routes/x+/jobs.$workCenterId.tsx@@ -58,7 +58,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {const workCenter = await getWorkCenter(client, workCenterId);if (workCenter.error || workCenter.data?.companyId !== companyId) {- throw redirect(path.to.authenticatedRoot, {+ throw redirect(path.to.recent, {headers: {"Set-Cookie": clearLocationAndWorkCenter(),},