Skip to content

fix: strip hash prefix from marker colors in URL construction#116

Closed
fank wants to merge 1 commit intomainfrom
fix/marker-color-hash-prefix
Closed

fix: strip hash prefix from marker colors in URL construction#116
fank wants to merge 1 commit intomainfrom
fix/marker-color-hash-prefix

Conversation

@fank
Copy link
Copy Markdown
Member

@fank fank commented Feb 3, 2026

Summary

  • Fix 404 errors for marker images when using recordings from the old extension (OcapReplaySaver2)
  • The old extension sends colors with # prefix (e.g., #E60000), which the browser interprets as a URL fragment, dropping the color parameter
  • Strip # prefix if present while maintaining backward compatibility

Test plan

  • Load a recording from the old extension that has marker colors with # prefix
  • Verify marker images load correctly without 404 errors
  • Load a recording from new extension (colors without #) to verify backward compatibility

The old extension (OcapReplaySaver2) sends marker colors with a # prefix
(e.g., #E60000), but the URL construction expected colors without it.
The # character in URLs is interpreted as a fragment identifier by the
browser, causing everything after it to be dropped and resulting in 404
errors for marker images.

This strips the # prefix if present while maintaining backward
compatibility with data that doesn't include the prefix.
@fank fank closed this Feb 3, 2026
@fank fank deleted the fix/marker-color-hash-prefix branch February 3, 2026 09:02
fank added a commit that referenced this pull request Feb 22, 2026
Implements extension PR #116 on the web side. The extension now sends
a single :TELEMETRY: command with FPS, per-side entity counts, global
counts, running scripts, weather, and player network data instead of
the old :FPS: command with just FPS values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant