Static Analysis File Links with .html Extension 404s

← All Specs

Goal

Root cause: Links are being generated with .html extensions pointing to /analyses/ routes, but the route handler expects paths without extensions. The static files exist but the routing is misconfigur

Acceptance Criteria

☐ Task completed as described
☐ Changes tested and verified

Approach

  • Read existing code and understand current state
  • Implement required changes
  • Test changes
  • Commit and push
  • Dependencies

    (none listed)

    Dependents

    (none listed)

    Work Log

    2026-04-20 16:30 UTC — Verification: Already Resolved

    • Ran: curl -s -o /dev/null -w '%{http_code}' "http://localhost:8000/analyses/SDA-2026-04-01-gap-v2-68d9c9c1.html"200 OK
    • Checked api.py line 27696: @app.api_route("/analyses/{analysis_id}.html", ...) + analyses_detail handles both .html and non-.html paths; strips .html extension at line 27704
    • Confirmed commit 13fe82a2a is on origin/main (in history since Apr 2)
    • Link checker's 1 failure is a different issue: SDA-2026-04-16-gap-pubmed-20260410-170057-a2f72fd8 returns 500 (DB timeout), not a routing 404
    • Fix already merged: analyses route handles .html extension correctly
    • Result: pass — task already addressed on main

    File: 0de12ae3_ba9_spec.md
    Modified: 2026-04-25 23:40
    Size: 1.3 KB