Skip to content

[Bug]: /inspector/ trailing slash is HTTP 404 while homepage links to it #132

Description

@oldwinter

Preflight

  • I searched existing issues for this problem.

What happened?

https://qoderai.github.io/better-harness/inspector/ returns HTTP 404 and a “Page Not Found” HTML document. The homepage itself links that trailing-slash URL. With JS on, the Inspector still hydrates; without JS (curl, crawlers, link checkers) it is a dead page. The slash-less URL is 200.

Where did it happen?

Other (public docs site)

Version and environment

Public site https://qoderai.github.io/better-harness/ on 2026-08-31 (UTC+8). Docusaurus site, GitHub Pages. No plugin/host install involved.

Steps to reproduce

  1. curl -sSI https://qoderai.github.io/better-harness/inspector/HTTP/2 404, body title Page Not Found | Better Harness.
  2. curl -sSI https://qoderai.github.io/better-harness/inspectorHTTP/2 200.
  3. Open the homepage, section “Follow delivery from intent to commit”. The preview image and “Open the interactive sample” use href="/better-harness/inspector/". Navbar Inspector uses the slash-less path.

Expected vs actual result

Expected: 200, or a 301/302 to /better-harness/inspector, so no-JS readers and crawlers get the Inspector page.
Actual: trailing slash = 404 HTML; browser with JS then paints Inspector on top of a 404 response.

Logs or screenshots

$ curl -sSI https://qoderai.github.io/better-harness/inspector/ | head -1
HTTP/2 404

$ curl -sSI https://qoderai.github.io/better-harness/inspector | head -1
HTTP/2 200

Homepage hrefs include both /better-harness/inspector and /better-harness/inspector/.

Anything else?

现象:首页链到带尾斜杠的 Inspector,服务器给 404。
想改成啥:统一无斜杠并 301,或 Pages 对 /inspector/ 也 200。
验收:curl -sSI 两条 URL 都不是 404;首页不再链到 404。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions