{
    "title": "Links only work with JavaScript",
    "description": "Links are buttons or script calls instead of real  links, so crawlers cannot follow them to your other pages.",
    "url": "https://ursy.com/issues/links-need-javascript/",
    "canonical": "https://ursy.com/issues/links-need-javascript/",
    "markdown": "https://ursy.com/issues/links-need-javascript/index.md",
    "json": "https://ursy.com/issues/links-need-javascript/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:05+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/links-need-javascript/",
    "start_here": {
        "page": "https://ursy.com/issues/links-need-javascript/",
        "markdown": "https://ursy.com/issues/links-need-javascript/index.md",
        "json": "https://ursy.com/issues/links-need-javascript/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "links-need-javascript",
        "problem": "Links only work with JavaScript",
        "summary": "Links are buttons or script calls instead of real <a href> links, so crawlers cannot follow them to your other pages.",
        "status": "Live",
        "priority": "high",
        "category": "javascript",
        "category_title": "JavaScript and rendering",
        "why_it_matters": [
            "Google Search Central says Google can only reliably discover links that are <a> elements with an href attribute. Links made from buttons, spans or onclick handlers, or <a> tags without a real address, may work for visitors but give crawlers nothing to follow.",
            "If none of the links on a page are real, a crawler that lands there cannot find any other page from it, and no link value passes on."
        ],
        "how_to_fix": [
            "Use normal <a href=\"/page/\"> links for navigation, menus, pages of results and product lists. The look can stay the same, and a script can still run when the link is clicked.",
            "Check with the JavaScript SEO Checker, and see how link value flows through the site with the Link Juice Checker."
        ],
        "steps": [],
        "check_it_is_fixed": "Run the JavaScript SEO Checker again: it should find real <a href> links in the HTML for menus, lists and pagination.",
        "found_by": [
            {
                "tool": "javascript-seo-checker",
                "name": "JavaScript SEO Checker",
                "status": "Live",
                "page": "https://ursy.com/javascript-seo-checker/",
                "card": "https://ursy.com/javascript-seo-checker.json"
            },
            {
                "tool": "link-juice-checker",
                "name": "Link Juice Checker",
                "status": "Live",
                "page": "https://ursy.com/link-juice-checker/",
                "card": "https://ursy.com/link-juice-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/links-need-javascript",
        "source": {
            "url": "https://developers.google.com/search/docs/crawling-indexing/links-crawlable",
            "title": "Google Search Central: Make your links crawlable"
        },
        "cite": "Links only work with JavaScript. URSY.com. https://ursy.com/issues/links-need-javascript/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/links-need-javascript/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/links-need-javascript/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/links-need-javascript/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/links-need-javascript/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/links-need-javascript/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/links-need-javascript/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/links-need-javascript/#wordpress"
        },
        {
            "level": 3,
            "text": "Shopify",
            "id": "shopify",
            "url": "https://ursy.com/issues/links-need-javascript/#shopify"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/links-need-javascript/#a-hand-made-site"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/links-need-javascript/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/links-need-javascript/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/links-need-javascript/#questions"
        },
        {
            "level": 3,
            "text": "Is it wrong to use buttons at all?",
            "id": "is-it-wrong-to-use-buttons-at-all",
            "url": "https://ursy.com/issues/links-need-javascript/#is-it-wrong-to-use-buttons-at-all"
        },
        {
            "level": 3,
            "text": "What about infinite scroll?",
            "id": "what-about-infinite-scroll",
            "url": "https://ursy.com/issues/links-need-javascript/#what-about-infinite-scroll"
        }
    ],
    "links": [
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "JavaScript SEO",
            "url": "https://ursy.com/wiki/javascript-seo/",
            "internal": true
        },
        {
            "text": "Link Juice",
            "url": "https://ursy.com/wiki/link-juice/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "SEO",
            "url": "https://ursy.com/wiki/seo-search-engine-optimisation/",
            "internal": true
        },
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "pagination",
            "url": "https://ursy.com/wiki/pagination/",
            "internal": true
        },
        {
            "text": "Google Search Central: Make your links crawlable",
            "url": "https://developers.google.com/search/docs/crawling-indexing/links-crawlable",
            "internal": false
        }
    ],
    "words": 581,
    "text": "Links are buttons or script calls instead of real <a href> links, so crawlers cannot follow them to your other pages. Why it matters Google Search Central says Google can only reliably discover links that are <a> elements with an href attribute. Links made from buttons, spans or onclick handlers, or <a> tags without a real address, may work for visitors but give crawlers nothing to follow. If none of the links on a page are real, a crawler that lands there cannot find any other page from it, and no link value passes on. How to fix it Use normal <a href=\"/page/\"> links for navigation, menus, pages of results and product lists. The look can stay the same, and a script can still run when the link is clicked. Check with the JavaScript SEO Checker, and see how link value flows through the site with the Link Juice Checker. What the problem looks like <span onclick=\"location.href='/benches/'\">Benches</span> <a href=\"javascript:void(0)\" onclick=\"openPage('/tables/')\">Tables</a> Neither gives crawlers an address to follow. What it looks like fixed <a href=\"/benches/\">Benches</a> <a href=\"/tables/\">Tables</a> Real links with an href. They can look the same, and a script can still run on click. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: Help me make the links on [the page address] of [your website address] crawlable. It uses [your platform, e.g. Next.js or WordPress]. A checker says links here are buttons, spans or script calls instead of real <a href> links, so crawlers cannot follow them to my other pages. First, read the HTML as served (or ask me to paste it) and list every navigation item that is not an <a> with a real href: onclick handlers, javascript: links, # links and buttons. Say which pages crawlers cannot reach. Then give me the fix: turn each one into a normal <a href=\"/page/\"> link to the real address, keeping the same look, and keep any click script. Rules: buttons stay buttons for actions such as add to basket; keep page addresses and styles the same; back up or use a branch; and do not add nofollow. Give exact code and where it goes. Finally, tell me to re-check with the URSY.com JavaScript SEO Checker at ursy.com/javascript-seo-checker/. Fix it on your platform WordPress In page builders, use the link field of buttons and menus rather than a click action or script. For \"load more\" lists, also keep normal numbered page links. Shopify Check custom menus, filters and \"load more\" buttons added by apps or theme code. Collection pages should keep normal links to products and to later pages. A hand-made site In React, Vue and similar frameworks, use the router's link component, which renders a real <a href>, not a click handler on a div or span. Check it is fixed Run the JavaScript SEO Checker again: it should find real <a href> links in the HTML for menus, lists and pagination. Official source Google Search Central: Make your links crawlable Questions Is it wrong to use buttons at all? No. Buttons are right for actions, such as adding to the basket. Links are for going to another page. What about infinite scroll? Keep normal numbered page links as well, with real addresses, so crawlers can reach every item.",
    "source": "https://ursy.com/issues/links-need-javascript/"
}