FIELD NOTES · SEARCH EVIDENCE

Resolve the effective destination before accepting a relative link

A visible label does not identify a destination

A reviewer sees a Contact link whose raw href is /contact/ and assumes it belongs to the address bar’s host. That assumption can fail when the document uses a base URL on another origin. Before accepting a navigation or discovery entry, retain the raw attribute, the effective document base and the resolved absolute URL. The first useful decision is whether that destination is intended; testing the server response comes afterwards.

Use this exercise for a new page or a separately authorised repair proposal. It does not instruct you to rewrite an old site-wide base element. A base change can affect many links and resources at once, so a single repaired menu item is insufficient evidence. The intended output is a small destination register with representative anchors, downloads and fragment links, plus one deliberately unexpected result to make the review falsifiable.

Find the effective base before resolving href

The HTML Standard permits no more than one base element and gives the first base with an href its URL role if multiple are present. A base with href must precede other elements carrying URL-valued attributes. MDN documents document.baseURI as the used base; without a base element it defaults to the document location. These are browser-document rules, not evidence that a search engine accepted a canonical. HTML Standard: base · MDN: base usage.

Record document.baseURI and both getAttribute("href") and the anchor’s resolved href from the same observed page. Preserve the original document URL too. A later base change or a client-rendered link replacement can make records from different moments incomparable. If multiple base elements appear, flag the invalid authoring condition rather than treating the second as an approved override. The download below accepts a supplied effective base; it does not parse arbitrary HTML or reproduce every document/CSP rule.

Resolve a reference, then compare the expected route

URL resolution is not string concatenation. A base ending /docs/ treats guide as a child, while a base ending /docs treats docs as the last path segment to replace. A root-relative /contact/ uses the effective base origin, including an unintended CDN origin. A fully absolute href supplies its own destination. Fragment-only #details also resolves against the document base; it must not be assumed to stay on the current article. MDN: relative-reference resolution.

Our eight synthetic cases include two trailing-slash outcomes, a cross-origin root reference, a fragment, an absolute link, an empty reference, a missing base and an invalid supplied URL. The local function uses the runtime URL constructor for the supported HTTP(S) inputs and preserves an explicit unresolved state. A same-origin flag is only a comparison; it is neither a security verdict nor a statement that the destination exists.

Keep route identity and response evidence separate

Once the resolved URL matches the intended destination, a separately permitted live check can record its response, redirects and visible content. If the URL is wrong, write a precise proposal naming the attribute and intended scope; do not fetch unintended private hosts or patch a shared template merely to make the example pass. For discovery, retain a real anchor with href and the observed destination; a text label or a locally computed URL alone does not prove that visitors can reach the article.

The packet changes no route, canonical, hreflang, base element or navigation. It reads fictional supplied inputs only. Browser base rules also interact with policy and document state beyond this finite exercise. Treat unsupported inputs as unresolved and request the actual DOM evidence. An offline test pass is useful for reproducing the arithmetic of the destination, but says nothing about ranking, indexability, AI recommendations or the availability of a real server.

Completed teaching cases

Synthetic cases, not client evidence or provider statuses. Scroll the table on narrow screens.

InputOutputNext evidence
A · base=https://cedar.example/docs/; href='guide'https://cedar.example/docs/guideCompare intended route, then separately capture permitted live response
B · base=https://cedar.example/docs; href='guide'https://cedar.example/guideCompare intended route, then separately capture permitted live response
C · base=https://cdn.example/assets/; href='/contact/'https://cdn.example/contact/Compare intended route, then separately capture permitted live response
D · base=https://cedar.example/docs/; href='#details'https://cedar.example/docs/#detailsCompare intended route, then separately capture permitted live response
E · base=https://cdn.example/assets/; href='https://cedar.example/help/'https://cedar.example/help/Compare intended route, then separately capture permitted live response
F · base=https://cedar.example/docs/; href=''https://cedar.example/docs/Compare intended route, then separately capture permitted live response
G · base=None; href='guide'https://cedar.example/article/guideCompare intended route, then separately capture permitted live response
H · base=None; href='guide'UNRESOLVEDCompare intended route, then separately capture permitted live response

Sources and reusable packet

Supporting passages checked 6 November 2026; recheck before implementation. Procedures, fictional cases and review labels are original.

README.txt · filled-review.json · resolve.mjs · test-resolve.mjs

Read the related, separately scoped task.