HarperFast/harper

Incorrect logic for matching index.html

Open

#297 opened on Mar 29, 2026

 (4 comments) (0 reactions) (1 assignee)JavaScript (11 forks)github user discovery
good first issue

Repository metrics

Stars
 (85 stars)
PR merge metrics
 (Avg merge 6d 4h) (222 merged PRs in 30d)

Description

The static default index file matcher uses logic of urlPath.endsWith('index.html') which means it not only matches index.html, but also another-index.html, wrong-index.html, and really-wrong-index.html. And picks a winner in somewhat unpredictable fashion.

Contributor guide