Trace a broken record link to the value used to build its path
A report can display the correct Arabic label while its link goes to the wrong route. The visible wording and the target address are different data. Inspect both before changing the record name or assuming the stored request has disappeared.
This fictional investigation follows an internal report row to its request. The records are intact and the reader has the correct permission. The link builder mistakenly uses a display label as a path identifier.
Inspect the row and the destination separately
The report row concerns stable record ID req:72. Its approved display label is صيانة / فحص أولي. The slash is ordinary punctuation in that label; the organisation does not intend it to define an application route.
The inspected application expects a single encoded identifier segment after /requests/. Its faulty link builder appends the display label instead. The resulting path contains an extra slash and no longer supplies the expected record ID to the route handler.
| Boundary | Observation |
|---|---|
| Report source identity | req:72 |
| Visible label | صيانة / فحص أولي |
| Faulty target input | /requests/ plus the display label |
| Parsed path | Additional segments introduced by the label's slash |
| Direct permitted lookup by ID | Correct request exists for req:72 |
The label's Arabic text has not been lost, and the request has not moved. The failure is the value chosen for route construction and the boundary of the path segment.
Use identity for navigation and wording for reading
The repair keeps the approved display label unchanged. The target is built from the stable req:72 identifier using the route's supported segment-encoding procedure, producing /requests/req%3A72. The receiver decodes that segment once and looks up the exact authorised record.
The WHATWG URL Standard defines path parsing, including the role of slash delimiters. Encoding rules must be applied to the intended component. Encoding an entire assembled address or stripping punctuation from a label would not establish the correct application identity.
The project also checks the actual router's contract. A correctly formed URL does not by itself decide how an application's route parameter is decoded, looked up or authorised. Those behaviours are inspected in this fictional setup rather than inferred from the browser's address bar.
Follow the repaired target into the record
An authorised reviewer activates the report link and reaches req:72. The receiving page shows that identifier and the expected request content. The visible report label remains صيانة / فحص أولي; the repair has not renamed the task or introduced a guessed match.
A second record, req:73, has a different Arabic label and its own report row. Its link opens req:73. The reviewer then changes only the approved display wording for the first record. Its destination remains req:72, demonstrating that a wording edit no longer changes navigation identity.
The checks include the encoded path as well as the opened page. The intended segment is passed to the route handler, decoded under the inspected contract and resolved to the exact source record. No label-based search is used as a fallback.
Preserve refusal and unknown-record behaviour
The unknown test identifier req:99 produces the application's agreed unavailable-record response. It does not open the closest numbered request. A reviewer without permission for req:72 cannot obtain its content by copying the now-correct link. Correct routing has not widened access.
An unrelated report row whose existing target was valid retains its destination. The repair is limited to the builder that was using display wording instead of identity; it does not rewrite every link in the application.
Record what the next maintainer needs
Document the source ID field, route shape, component-encoding rule, receiver decoding and access check. Keep the Arabic display field separate in that record. A later editor should be able to adjust wording without needing to understand internal route syntax.
For a project discussion, bring the visible row, the target address and the record that should open. Those three observations make the first disagreement much easier to locate than a report that “Arabic links are broken.”
