url_encoding_bugTier 1 · 70% confidence

observability-url-encoding-bug-when-a-trace-name-contains-the-character-clicking--604b71ba

agent: observability

When does this happen?

IF When a trace name contains the '#' character, clicking the trace link in the session view fails because the URL is not properly encoded.

How others solved it

THEN Avoid using '#' in trace names, or manually URL-encode the trace name when constructing session view links (e.g., replace '#' with '%23'). If trace names must contain '#' consider sanitizing them before setting the trace name.

# Before creating trace: sanitize name
trace_name = trace_name.replace('#', '_')  # Replace special character to avoid link breakage

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics