Separate destinations from actions
Classify each component before changing its markup. A product card opening a product page is navigation. A disclosure button opening a menu is an interface action. A filter submitting a new state may need a different design depending on whether it represents a durable navigable URL.
Do not turn every button into an anchor to satisfy a crawler checklist. A purchase action, form submission, or destructive control is not the same as opening a guide. Semantic accuracy helps both implementation and testing: the team knows whether it should verify a destination or an action.
| Component | Job | Required evidence |
|---|---|---|
| Product card title | Open product detail | Anchor with real detail URL and descriptive text |
| Category menu trigger | Reveal choices | Appropriate action control and usable disclosed links |
| Related guide | Explain a setup decision | Anchor to the actual guide |
| Sort control | Change listing order | Correct state behavior, separately reviewed URL policy |
The rows are fictional specifications. They do not report a real accessibility audit. Review keyboard and assistive-technology behavior using the standards and components appropriate to the site.
Work through a script-only card
Imagine a fictional catalog card whose outer container responds to a click by running a router function. It has a product name and a picture but no anchor. The developer can click it successfully, so a screenshot review passes. The emitted document still lacks a normal link to the detail page.
The repair is to identify the actual navigation target and expose it as an anchor with an href. The client router can preserve fast transitions where appropriate. Avoid nested interactive controls or making an entire complicated card one ambiguous click region without considering its other actions.
Use a descriptive accessible name. Google's link guidance recommends concise, relevant anchor text. A sequence of unlabeled icons or repeated “learn more” links may not communicate which product each destination represents. Surrounding context can help, but clear link wording reduces unnecessary guesswork.
Do not use a JavaScript pseudo-URL as the destination. A placeholder href with a click handler is not equivalent to a real product route. The contract should name the actual URL the visitor can open independently.
Test the anchor and its destination independently
Inspect the rendered HTML to confirm the expected anchor and href exist. Record the source component and the route it represents. If the link is added by JavaScript, verify the resulting rendered structure rather than assuming the framework component name proves its output.
Then open the destination directly in a clean request. A route that works only after arriving through the application can fail when a visitor follows a search result or shares the URL. Check status, intended public content, and any authentication boundary.
Google's JavaScript guidance recommends meaningful routing and avoiding fragment-based content routing for distinct pages. A fragment that selects a section of an existing page is a different use from a hash route that pretends to be a separate product document.
Use the three-view rendering record when the destination's essential explanation disappears. A crawlable incoming link does not repair a missing public paragraph or a data request that requires an authenticated session.
Check enhancement without breaking basic use
Compare ordinary activation, opening in a new tab, copying the link address, browser back navigation, and direct loading. Test keyboard access and meaningful focus behavior within the site's accessibility review. Client-side transitions should preserve the destination contract rather than replacing it with a private event stream.
Watch for event handlers that prevent every default action, assume a particular mouse button, or route to a different URL from the href. If the two destinations disagree, record which behavior is approved. Do not leave one address for crawlers and another for visitors by accident.
Test a representative set of shared components: navigation menu, product card, related resource, pagination, and version switcher where present. Count components and destinations separately. One repaired card component can affect many pages, while one manually authored link may affect only one resource.
Record any deliberate exceptions. A restricted application route may legitimately require authentication. The access and indexing policy should define that intention, rather than a navigation patch accidentally making protected content public.
Use a small acceptance worksheet
For each component, record the intended destination, actual emitted href, link text, direct-load result, enhanced-navigation result, keyboard review status, and owner. Include the tested release and any state that changes the component, such as mobile menus or public experiments.
Mark findings precisely. “No anchor emitted” is an implementation defect. “Direct route returns an application shell without product text” is a destination issue. “Product guide is not internally linked anywhere” is a content architecture gap. These can coexist, but they need different repairs.
After changes, repeat the relevant tests and preserve the emitted examples. Add regression checks at the component boundary so a future design refresh does not restore script-only navigation. A test that counts all anchors on the page is too broad to establish that the important product link exists.
Add a destination inventory for repeated cards and menus. Map each visible product name to its intended route and check that separate cards do not all point to a generic category by mistake. That defect can survive a structural audit because every control is a valid anchor. The destination must also match the promise.
For localized navigation, verify that a label and its route refer to the same language or clearly disclose a change. For retired products, use the approved replacement or retirement destination rather than generating a nonexistent detail URL. These checks belong to the content contract, not merely the router implementation.
Save representative emitted markup with the review. A future maintainer can compare it with the source component and identify whether a framework upgrade changed the output. Do not rely on the name of a link component as permanent proof of its behavior.
Approve the contract when the intended public destinations are represented by usable links and the tested interactions reach the right content. Discovery and indexing remain separate observations. A reliable anchor is a necessary implementation improvement, not proof that a search engine will select or rank the destination.
