Skip to content

Exclude Paths filter not applied when searching HTML files #51

Description

@ericvangeem

When using the Exclude Paths configuration field, entered paths are silently ignored during an HTML content search.

Root cause: The exclude-paths check only exists inside fetchFiles(), but the main HTML search flow bypasses fetchFiles() entirely — it uses DA's crawl() function with a processItem callback that has no visibility into the exclude-paths input.

The JSON file search branch calls fetchFilesForJson() directly, so it correctly honors exclusions. Only the HTML crawl is affected.

Steps to reproduce:

  1. Enter a valid org/site
  2. Add a folder path to Exclude Paths (e.g. /drafts)
  3. Run a search — files under that path still appear in results

Expected: Files under excluded paths are omitted from results

Fix: Apply the same exclude-paths filter inside the processItem callback used by crawl().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions