mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 16:19:10 +03:00
Closes #45184. ## Summary `ErroredTableDetails.tsx` links the `no_retry` branch to the support form with the Postgres error message (`state.reason`) dropped into the `error` query parameter raw: ```tsx href={`/support?projectRef=${projectRef}&category=dashboard_bug&subject=Database%20replication%20error&error=${state.reason}`} ``` Error strings routinely contain `&`, `#`, `=`, or newlines. Any of these break the URL and leave the support form with a truncated or misattributed value. Wrap with `encodeURIComponent`, matching the pattern already used in `PipelineStatus.tsx:39-42` for the replication-logs URL. Null-coalesce to `''` so the link is still well-formed if `state.reason` is absent. ## Test plan - [ ] Trigger a replication error whose message contains `&` / `#` / newlines, open the support link, verify the full error text reaches the form. - [ ] Normal error string. URL is unchanged beyond standard URL encoding. Co-authored-by: Ali Waseem <waseema393@gmail.com>