From a4b30c056d396b35196896d07195fc060f804332 Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Wed, 9 Jul 2025 20:42:09 -0400 Subject: [PATCH] Fix custom page prefix scope (#2722) Fixes #2721 This PR removes frontend logic that set the seed-level scopeType for custom page prefix workflows to `prefix`, which was causing the scope to balloon larger than what users intended for some workflows. --- frontend/src/features/crawl-workflows/workflow-editor.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/src/features/crawl-workflows/workflow-editor.ts b/frontend/src/features/crawl-workflows/workflow-editor.ts index f2aeb01c..8305a1ed 100644 --- a/frontend/src/features/crawl-workflows/workflow-editor.ts +++ b/frontend/src/features/crawl-workflows/workflow-editor.ts @@ -2640,12 +2640,7 @@ https://archiveweb.page/images/${"logo.svg"}`} : []; const primarySeed: Seed = { url: primarySeedUrl, - // the 'custom' scope here indicates we have extra URLs, actually set to 'prefix' - // scope on backend to ensure seed URL is also added as part of standard prefix scope - scopeType: - this.formState.scopeType === ScopeType.Custom - ? ScopeType.Prefix - : (this.formState.scopeType as ScopeType), + scopeType: this.formState.scopeType as ScopeType, include: this.formState.scopeType === ScopeType.Custom ? [...includeUrlList.map((url) => regexEscape(url))]