diff --git a/apps/web/lib/plain/plainChat.tsx b/apps/web/lib/plain/plainChat.tsx index d80699c3638f09..b4e7a95f848130 100644 --- a/apps/web/lib/plain/plainChat.tsx +++ b/apps/web/lib/plain/plainChat.tsx @@ -83,7 +83,7 @@ const PlainChat = () => { return ( typeof window !== "undefined" && window.location.origin === process.env.NEXT_PUBLIC_WEBAPP_URL && - !restrictedPaths.some((path) => pathname?.startsWith(path.trim())) + !restrictedPaths.some((path) => pathname?.includes(path.trim())) ); }, [pathname]);