Broken transcript links now show a helpful recovery option instead of a confusing error.
If someone followed an old or mis-typed transcript link — or if a search engine crawler stumbled onto an invalid URL — NavEd was logging it as an application error and surfacing it in our monitoring. The link still failed gracefully, but the noise made it harder to spot real problems.
We've fixed this by teaching the transcript viewer to recognize obviously invalid links upfront, without querying the database at all. Valid-looking links that have no matching transcript (expired or never-existed) are now also handled quietly, with a clear message and a recovery form so users can retrieve their link by email. Genuine unexpected errors still alert our team as before.
Fixes and Improvements¶
- Transcript links containing invalid tokens (e.g. bots probing random URLs) are now rejected immediately — no database query, no error alert
- Expired or missing transcript links now show a user-friendly error page with an email recovery form
- Added regression tests covering all three token states: invalid format, valid but missing record, and genuine server error