Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update redirect.ts

Nicolascda495665c34
diff --git a/apps/api/src/services/integrations/slack/redirect.ts b/apps/api/src/services/integrations/slack/redirect.ts
index 7a1f04b9e..7fe56511c 100644
--- a/apps/api/src/services/integrations/slack/redirect.ts
+++ b/apps/api/src/services/integrations/slack/redirect.ts
@@ -14,7 +14,6 @@ export function sanitizeRedirectPath(path?: string | null): string {
const base = new URL(config.FIRECRAWL_DASHBOARD_URL);
const resolved = new URL(path, base);
if (resolved.origin !== base.origin) return DEFAULT_REDIRECT_PATH;
- // Return only the on-origin path so nothing host-like survives.
return resolved.pathname + resolved.search + resolved.hash;
} catch {
return DEFAULT_REDIRECT_PATH;