Saliem Talash: A working link can open the wrong copy
A review page moves into a preview folder. Its “Open the detail sheet” link still opens a convincing page, with the right heading and no error message. The reviewer carries on. The link has passed a loading check while failing the handoff: it opened the main sheet instead of the preview sheet.
That distinction matters whenever two copies of a website or document are available. A successful response answers whether a resource was served. The review still needs to establish which resource arrived and whether it belongs to the intended version.
Six small link journeys
On November 11, 2026, a local experiment used six link cases and two fictional detail sheets. One sheet displayed MAIN COPY and document key MAIN-17; the other displayed PREVIEW COPY and PREVIEW-17. Both had the heading “Fictional detail sheet” and both returned HTTP 200. A deliberately missing path returned HTTP 404.
Each case was opened at 1440 × 900 and 390 × 844, then its link was clicked in the browser. That produced twelve journeys and twenty-four before-and-after observations. The pages contained no scripts or base element. The recorded device pixel ratio was 1. A local request log supplied the response status; the browser supplied the resulting URL and visible copy marker.
The cases isolate three written link forms:
- A — current folder: from
/demo/,details/opened/demo/details/, the main sheet. - B — an extra folder: from
/demo/review/, the samedetails/opened/demo/review/details/. That page was deliberately absent, so the result was 404. - C — parent folder: from
/demo/review/,../details/opened/demo/details/, the intended main sheet. - D — site root: from
/demo/review/,/demo/details/also opened the intended main sheet. - E — preview context, root link: from
/preview/demo/review/,/demo/details/opened the main sheet. It returned 200, but this case required the preview sheet. - F — preview context, parent link: from
/preview/demo/review/,../details/opened/preview/demo/details/, the intended preview sheet.
These paths and document keys are fictional controls, not instructions to change a live website. The same destinations and copy markers were observed at both widths. Neither the starting pages nor destination pages had horizontal document overflow in these observations.
What the slash changed
The browser needs a base against which to resolve a relative link. In this experiment the document URL supplied it. MDN’s guide to resolving relative references distinguishes references to the current directory, a parent directory and the site root. A starting slash selects the root of the base URL’s site; it does not preserve a preview folder in the path.
That explains the contrast between D and E. Their written link was identical. From either review page, it pointed to the main sheet. Changing the review page’s folder did not change that root-relative destination. The link worked exactly as written, while the requirement changed from “main sheet” to “preview sheet.”
On the fictional preview review page, this alternative opened the main copy:
<a href="/demo/details/">Open the detail sheet</a>
This alternative opened the preview copy:
<a href="../details/">Open the detail sheet</a>
The second form depends on the relationship between the two folders. Move the review page another level down and that relationship changes again. A leading slash can be appropriate when the destination should always belong to the site root. A parent-relative link can be appropriate when a group of pages should move together with their internal structure intact. The intended destination determines the choice.
MDN’s anchor-element reference shows these relative link forms. Reading the address in context is more useful than adopting a blanket rule that all links should start with a slash.
Why checking the heading missed the problem
The two sheets deliberately shared a heading. A check that looked only for “Fictional detail sheet” would have accepted E. A check that looked only for HTTP 200 would have accepted it too. Combining those two checks would still have accepted it.
The independent criterion was the copy identity: PREVIEW-17 was required, while MAIN-17 arrived. That requirement had to be written down before the click. Otherwise a reviewer could quietly redefine success around whichever plausible page appeared.
For a real handoff, the equivalent might be an environment label, a document revision or a known piece of content that differs between copies. Choose something appropriate to the page. A successful login, correct-looking header or familiar brand does not by itself settle which version was reached.
A review record someone else can repeat
Keep five items together for each link under review:
- Starting page: record its full URL, including its folder context.
- Written link: retain the actual
href, rather than only the visible link label. - Intended destination: state which copy or revision should open.
- Observed destination: record the final URL, response status and identifying content.
- Decision: explain the match or mismatch, including any redirect encountered.
MDN’s URL API reference documents resolving a URL string with a base URL. That can help inspect an address, but a calculated address is not a loading test or proof of the content served there. Follow the actual link and compare the result with the requirement.
For example, a useful failure note from E would be: “From the preview review page, the root-relative link opened /demo/details/; the response was 200 and the visible key was MAIN-17. Expected PREVIEW-17.” That is enough to explain why an apparently healthy link failed this particular review.
Readable link labels still matter. The STEO guide to internal linking that passes context covers the reader’s side of that work. Pair clear wording with a destination check; the same label can conceal different paths, and different paths can serve similar-looking content.
Scope of this comparison
AI assistance helped prepare the fixture, inspect its results and write this article. All pages, labels and document keys were fictional local controls. The comparison used one browser environment and ordinary pointer clicks at two viewport sizes. It did not test physical phones, other browser engines, keyboard or assistive-technology access, production routing, authentication, cross-origin behaviour, security or performance.
There were no redirects or client-side routers in the fixture. Those can introduce additional steps on a real site. This experiment establishes a narrower result: a root-relative link can keep loading successfully while leaving a preview path and opening the wrong copy for the stated task. A handoff check should preserve that distinction.
Comments
Post a Comment