diff --git a/src/lib/gql/gql-queries.tsx b/src/lib/gql/gql-queries.tsx index 0dc0e847..dc05f24f 100644 --- a/src/lib/gql/gql-queries.tsx +++ b/src/lib/gql/gql-queries.tsx @@ -31,6 +31,9 @@ export const getEntityFromPath = cache( let entity: T | undefined let query: RouteQuery + // Paths that start with /node/ should not be used. + if (path.startsWith("/node/")) return {} + try { query = await graphqlClient({next: {tags: ["all-entities", `paths:${path}`]}}, previewMode).Route({path}) } catch (e) {