Start with the destination
Begin with the business question: which public pages must a visitor and a crawler be able to reach from the menu? List the service, category, location and help pages that matter, together with their final public URLs. A visual menu design is not the inventory. A card that looks like a link but only fires a click handler can seem fine during a quick browser demo while failing the basic test of exposing an address. Decide the intended destination first, then make its address part of the element that people activate.
Google says links are generally crawlable when they are HTML anchor elements with an href attribute that resolves to a real web address. A script may insert that anchor into the rendered document; JavaScript itself is not automatically the problem. The risk is markup such as a clickable span, an anchor without href, or a javascript: pseudo-URL. For a public destination, use a normal address such as a root-relative path. The browser can still intercept ordinary navigation for a faster client-side transition while the underlying address remains available.
Links and buttons have different jobs
Use a link when activation takes the visitor to another URL. Use a button when activation changes the current interface, such as expanding a submenu. This distinction makes the navigation understandable with a keyboard and reduces crawler ambiguity. A top-level item may need both behaviours: one link to the category landing page and a separate button labelled to expand its child choices. Making a single control both navigate and expand often creates a choice that users cannot predict, especially on touch screens where hover is unavailable.
Consider a shop menu labelled Repairs with three child services. The word Repairs can link to /repairs, while a neighbouring expand button reveals /repairs/phones, /repairs/laptops and /repairs/tablets as ordinary anchors. If the product decision is that Repairs has no landing page, do not invent a dead link: make the heading an expansion control and ensure each service item has its own href. Record that choice in the page map. This example is a design scenario, not an observed search result or a claim about any particular shop.
Check what arrives before and after scripts
Google describes a crawl and render process: it can extract URLs from the fetched HTML and then parse the rendered HTML again. This supports JavaScript-generated anchors, but it does not mean every script will execute successfully or promptly. If a menu depends on a blocked resource, a failing network request, an authentication state or a user gesture before it creates the links, the rendered page may omit important destinations. Put core public navigation in the initial HTML where practical, or confirm that rendering reliably produces it.
Test with at least two views of the same public URL. Inspect the server response to see whether the important anchors exist before JavaScript runs; then inspect the final DOM after scripts run to see whether each href still points to the intended page. Disable scripts briefly as a diagnostic, not as a claim that every user browses that way. If the links only appear after a search, a click or a scroll, ask whether the menu is actually a dependable discovery route. A sitemap can help discovery but should not excuse broken navigation for visitors.
Verify the destination, not just the element
For each important menu item, follow the href in a fresh session and check the response and visible page. An address can exist but lead to a sign-in wall, an irrelevant redirect, a soft error or a missing product. Keep the wording of the link aligned with the destination; Google uses anchor text to understand linked pages, while people use it to decide whether to follow. This guide focuses on crawlable markup, so a label review is a supporting check rather than a substitute for the href test.
If you control Search Console, inspect a representative public destination and the page containing the menu. The URL Inspection tool can show indexed information and run a live test with rendered output and loaded resources. Compare what the tool actually saw with the expected page map. A successful live availability result means the tested page might be indexable; it does not promise inclusion, rankings or a particular crawl time. Record the test URL, date, observed DOM and any discrepancy so the developer can reproduce it.
Repair common failure patterns
A common implementation builds a menu item from a data object but stores the destination only in an onClick callback. Repair the shared component so it emits an anchor with a real href, rather than patching one page by hand. Another pattern renders a placeholder href and replaces it only after an API call. If the service list is stable, consider serving those destinations with the page. If it must be remote, define a safe fallback and test what happens when the request fails; an empty menu should not silently masquerade as complete.
Do not assume that a clickable item is discoverable merely because a user can open it. Conversely, do not treat a single failed search query as proof of a link defect. Search visibility depends on many conditions beyond navigation. The repair decision here is narrower and testable: every public destination named in the page map should be represented by a resolvable href in the applicable rendered navigation, should load the intended public page, and should remain usable through ordinary browser interaction.
Make acceptance evidence repeatable
Give the team a small acceptance sheet with the menu item, expected URL, page response, initial-HTML presence, rendered-HTML presence and keyboard result. Test both desktop and narrow layouts because mobile menus are often separate components. Include a newly added page and a renamed page, not only long-standing links. When a destination is intentionally absent from the menu, say where it can be found instead. This turns a vague instruction to improve SEO into a release check that product, content and engineering staff can perform together.
After release, repeat the checks on a real public URL rather than trusting a staging screenshot. If a navigation component changes, recheck the pages it supplies. Keep the outcome separate from Search Console performance data: a working anchor is an implementation fact, while impressions and clicks are later measurements that require actual reports. The useful next action is to choose five high-priority public destinations, inspect the anchors that lead to them, and fix the shared component if the addresses are missing.
Test stateful navigation
A navigation item may be rendered only for a location, language or account state. Build a test matrix from the actual public states rather than checking a single desktop session. For example, a service page intended for every visitor should still have a route when the visitor switches to Traditional Chinese or starts without a stored location. If a member-only destination is deliberately absent from public navigation, document that boundary. If a public page disappears merely because a preference API failed, repair the fallback. The point is to distinguish a purposeful access decision from a brittle implementation before attributing a discovery problem to Google.
Keep the test narrow enough to maintain. For each priority page, record the public state that should expose it, the anchor visible in that state, and the result of following its href. Repeat after a navigation component or route table changes, and inspect a live deployment rather than only a local development build. If an automated check reports a missing anchor, reproduce it in the relevant state before changing the page. This evidence gives the team a repair target and avoids promising that one markup change alone will improve rankings or traffic.
Before you proceed
- Each important menu destination has a real, resolvable href.
- The public destination loads the intended page in a fresh session.
- Desktop and mobile rendered navigation expose the same required destinations.


