Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: remove old route compatability dummy routes to properly display 404

Scott Wilson581725f9ad56
diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.ts
index 478c02dc20..72e3c25b8f 100644
--- a/frontend/src/routeTree.gen.ts
+++ b/frontend/src/routeTree.gen.ts
@@ -300,18 +300,10 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsImpor
createFileRoute(
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections',
)()
-const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatImport =
- createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/$',
- )()
const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjectIdImport =
createFileRoute(
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId',
)()
-const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatImport =
- createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$',
- )()
const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSshProjectIdImport =
createFileRoute(
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId',
@@ -733,14 +725,6 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsRoute
} as any,
)
-const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatRoute =
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatImport.update({
- id: '/$',
- path: '/$',
- getParentRoute: () =>
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRoute,
- } as any)
-
const adminResourceOverviewPageRouteRoute =
adminResourceOverviewPageRouteImport.update({
id: '/resources/overview',
@@ -798,15 +782,6 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjec
} as any,
)
-const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute =
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatImport.update(
- {
- id: '/$',
- path: '/$',
- getParentRoute: () => organizationProjectsPageRouteRoute,
- } as any,
- )
-
const secretManagerIntegrationsRouteVercelOauthRedirectRoute =
secretManagerIntegrationsRouteVercelOauthRedirectImport.update({
id: '/vercel/oauth2/callback',
@@ -2925,13 +2900,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof adminResourceOverviewPageRouteImport
parentRoute: typeof adminLayoutImport
}
- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/$': {
- id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/$'
- path: '/$'
- fullPath: '/organizations/$orgId/$'
- preLoaderRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatImport
- parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdImport
- }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections'
path: '/app-connections'
@@ -3065,13 +3033,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof secretManagerIntegrationsRouteVercelOauthRedirectImport
parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutIntegrationsImport
}
- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$': {
- id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$'
- path: '/$'
- fullPath: '/organizations/$orgId/projects/$'
- preLoaderRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatImport
- parentRoute: typeof organizationProjectsPageRouteImport
- }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId'
path: '/secret-manager/$projectId'
@@ -5471,7 +5432,6 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSshProjectI
)
interface organizationProjectsPageRouteRouteChildren {
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteWithChildren
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdRouteWithChildren
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRouteWithChildren
@@ -5483,8 +5443,6 @@ interface organizationProjectsPageRouteRouteChildren {
const organizationProjectsPageRouteRouteChildren: organizationProjectsPageRouteRouteChildren =
{
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute:
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute,
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRoute:
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteWithChildren,
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdRoute:
@@ -5577,7 +5535,6 @@ interface AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRouteChildren {
organizationBillingPageRouteRoute: typeof organizationBillingPageRouteRoute
organizationNetworkingPageRouteRoute: typeof organizationNetworkingPageRouteRoute
organizationProjectsPageRouteRoute: typeof organizationProjectsPageRouteRouteWithChildren
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatRoute
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsRouteWithChildren
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretSharingRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretSharingRouteWithChildren
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSettingsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSettingsRouteWithChildren
@@ -5597,8 +5554,6 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRouteChildren: Auth
organizationNetworkingPageRouteRoute: organizationNetworkingPageRouteRoute,
organizationProjectsPageRouteRoute:
organizationProjectsPageRouteRouteWithChildren,
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatRoute:
- AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatRoute,
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsRoute:
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsRouteWithChildren,
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretSharingRoute:
@@ -5875,7 +5830,6 @@ export interface FileRoutesByFullPath {
'/organizations/$orgId/networking': typeof organizationNetworkingPageRouteRoute
'/organizations/$orgId/projects': typeof organizationProjectsPageRouteRouteWithChildren
'/admin/resources/overview': typeof adminResourceOverviewPageRouteRoute
- '/organizations/$orgId/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatRoute
'/organizations/$orgId/app-connections': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsRouteWithChildren
'/organizations/$orgId/secret-sharing': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretSharingRouteWithChildren
'/organizations/$orgId/settings': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSettingsRouteWithChildren
@@ -5895,7 +5849,6 @@ export interface FileRoutesByFullPath {
'/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsRouteHerokuOauthRedirectRoute
'/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsRouteNetlifyOauthRedirectRoute
'/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsRouteVercelOauthRedirectRoute
- '/organizations/$orgId/projects/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute
'/organizations/$orgId/secret-manager/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjectIdRouteWithChildren
'/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute
'/organizations/$orgId/projects/ai/$projectId': typeof aiLayoutRouteWithChildren
@@ -6148,7 +6101,6 @@ export interface FileRoutesByTo {
'/organizations/$orgId/networking': typeof organizationNetworkingPageRouteRoute
'/organizations/$orgId/projects': typeof organizationProjectsPageRouteRouteWithChildren
'/admin/resources/overview': typeof adminResourceOverviewPageRouteRoute
- '/organizations/$orgId/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatRoute
'/organizations/$orgId/app-connections': typeof organizationAppConnectionsAppConnectionsPageRouteRoute
'/organizations/$orgId/secret-sharing': typeof organizationSecretSharingPageRouteRoute
'/organizations/$orgId/settings': typeof organizationSettingsPageRouteRoute
@@ -6165,7 +6117,6 @@ export interface FileRoutesByTo {
'/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsRouteHerokuOauthRedirectRoute
'/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsRouteNetlifyOauthRedirectRoute
'/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsRouteVercelOauthRedirectRoute
- '/organizations/$orgId/projects/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute
'/organizations/$orgId/secret-manager/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjectIdRouteWithChildren
'/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute
'/organizations/$orgId/projects/ai/$projectId': typeof aiLayoutRouteWithChildren
@@ -6414,7 +6365,6 @@ export interface FileRoutesById {
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/networking': typeof organizationNetworkingPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects': typeof organizationProjectsPageRouteRouteWithChildren
'/_authenticate/_inject-org-details/admin/_admin-layout/resources/overview': typeof adminResourceOverviewPageRouteRoute
- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSplatRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-sharing': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretSharingRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSettingsRouteWithChildren
@@ -6434,7 +6384,6 @@ export interface FileRoutesById {
'/_authenticate/_inject-org-details/_org-layout/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsRouteHerokuOauthRedirectRoute
'/_authenticate/_inject-org-details/_org-layout/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsRouteNetlifyOauthRedirectRoute
'/_authenticate/_inject-org-details/_org-layout/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsRouteVercelOauthRedirectRoute
- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjectIdRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteWithChildren
@@ -6700,7 +6649,6 @@ export interface FileRouteTypes {
| '/organizations/$orgId/networking'
| '/organizations/$orgId/projects'
| '/admin/resources/overview'
- | '/organizations/$orgId/$'
| '/organizations/$orgId/app-connections'
| '/organizations/$orgId/secret-sharing'
| '/organizations/$orgId/settings'
@@ -6720,7 +6668,6 @@ export interface FileRouteTypes {
| '/integrations/heroku/oauth2/callback'
| '/integrations/netlify/oauth2/callback'
| '/integrations/vercel/oauth2/callback'
- | '/organizations/$orgId/projects/$'
| '/organizations/$orgId/secret-manager/$projectId'
| '/organizations/$orgId/settings/oauth/callback'
| '/organizations/$orgId/projects/ai/$projectId'
@@ -6972,7 +6919,6 @@ export interface FileRouteTypes {
| '/organizations/$orgId/networking'
| '/organizations/$orgId/projects'
| '/admin/resources/overview'
- | '/organizations/$orgId/$'
| '/organizations/$orgId/app-connections'
| '/organizations/$orgId/secret-sharing'
| '/organizations/$orgId/settings'
@@ -6989,7 +6935,6 @@ export interface FileRouteTypes {
| '/integrations/heroku/oauth2/callback'
| '/integrations/netlify/oauth2/callback'
| '/integrations/vercel/oauth2/callback'
- | '/organizations/$orgId/projects/$'
| '/organizations/$orgId/secret-manager/$projectId'
| '/organizations/$orgId/settings/oauth/callback'
| '/organizations/$orgId/projects/ai/$projectId'
@@ -7236,7 +7181,6 @@ export interface FileRouteTypes {
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/networking'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects'
| '/_authenticate/_inject-org-details/admin/_admin-layout/resources/overview'
- | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/$'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-sharing'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings'
@@ -7256,7 +7200,6 @@ export interface FileRouteTypes {
| '/_authenticate/_inject-org-details/_org-layout/integrations/heroku/oauth2/callback'
| '/_authenticate/_inject-org-details/_org-layout/integrations/netlify/oauth2/callback'
| '/_authenticate/_inject-org-details/_org-layout/integrations/vercel/oauth2/callback'
- | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId'
@@ -7775,7 +7718,6 @@ export const routeTree = rootRoute
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/billing",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/networking",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects",
- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/$",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-sharing",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings",
@@ -7806,7 +7748,6 @@ export const routeTree = rootRoute
"filePath": "organization/ProjectsPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId",
"children": [
- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId",
@@ -7820,10 +7761,6 @@ export const routeTree = rootRoute
"filePath": "admin/ResourceOverviewPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/admin/_admin-layout"
},
- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/$": {
- "filePath": "",
- "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId"
- },
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections": {
"filePath": "",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId",
@@ -7911,10 +7848,6 @@ export const routeTree = rootRoute
"filePath": "secret-manager/integrations/route-vercel-oauth-redirect.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/integrations"
},
- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$": {
- "filePath": "",
- "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects"
- },
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId": {
"filePath": "",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId",
diff --git a/frontend/src/routes.ts b/frontend/src/routes.ts
index b4ef7e9351..51a620e8cc 100644
--- a/frontend/src/routes.ts
+++ b/frontend/src/routes.ts
@@ -440,11 +440,7 @@ const organizationRoutes = route("/organizations/$orgId", [
"organization/AppConnections/OauthCallbackPage/route.tsx"
)
]),
- route("/networking", "organization/NetworkingPage/route.tsx"),
-
- // Added these dummy routes to avoid errors when navigating from the organization-redirect and project-redirect
- route("/projects/$", ""),
- route("/$", "")
+ route("/networking", "organization/NetworkingPage/route.tsx")
]);
export const routes = rootRoute("root.tsx", [