Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

improve program/:path* redirect

Steven Tey6e2a1745d7d8
diff --git a/apps/web/lib/middleware/app.ts b/apps/web/lib/middleware/app.ts
index bac4979c40..6d0319cc74 100644
--- a/apps/web/lib/middleware/app.ts
+++ b/apps/web/lib/middleware/app.ts
@@ -87,12 +87,12 @@ export default async function AppMiddleware(req: NextRequest) {
"/analytics",
"/events",
"/customers",
- "/program",
"/programs",
"/settings",
"/upgrade",
"/wrapped",
].includes(path) ||
+ path.startsWith("/program/") ||
path.startsWith("/settings/") ||
isTopLevelSettingsRedirect(path)
) {