/insights: file:// URL broken on Windows — backslash before .claude dropped, link not clickable
Resolved 💬 3 comments Opened Mar 12, 2026 by kumaakh Closed Apr 29, 2026
Bug
The /insights command generates a report URL that doesn't work on Windows:
file://C:\Users\akhil\.claude\usage-data\report.html
Two issues:
- Backslash before
.claudegets dropped in rendering — the path displays asC:\akhil.claudeinstead ofC:\akhil\.claude, because the\.sequence is interpreted as an escape or path separator issue in the markdown/terminal rendering.
- Link is not clickable —
file://URLs with Windows backslash paths don't work as clickable links in terminals. On Windows, the URL should use forward slashes:file:///C:/Users/akhil/.claude/usage-data/report.html
Expected behavior
The report URL should be clickable and resolve to the correct path on Windows.
Suggested fix
On Windows, convert backslashes to forward slashes in the file:// URL and use the triple-slash file:/// convention:
file:///C:/Users/akhil/.claude/usage-data/report.html
Environment
- Claude Code v2.1.73
- Windows 11
- Windows Terminal / PowerShell
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗