Fragment URLs such as #/products
- What Google says
- Googlebot can't reliably resolve fragment URLs
- Fix
- Use the History API so each view has a real path such as
/products
SPA SEO is making a single-page application discoverable in search. See how Google renders JavaScript, crawlable links, status codes, and routing fixes.
SPA SEO is the work of making a single-page application discoverable and indexable in search. Google renders JavaScript with an evergreen Chromium, so SPAs can be indexed, but you must use real URLs, crawlable links, meaningful status codes, and unique titles. Google still recommends server-side or pre-rendering, since it speeds up pages and not all bots run JavaScript.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Google processes JavaScript web apps in three phases: crawling, rendering, and indexing. Googlebot queues all pages with a 200 status code for rendering, unless a robots meta tag or header says not to index the page. A headless Chromium then renders the page when Google's resources allow, and the rendered HTML is what Google indexes. The wait can be a few seconds or longer.
#/products/products<a> elements with an href<a href>; JavaScript may still handle the clicknoindex to error views<title> and meta description per route; JavaScript is allowed/not-found, or add a noindex robots meta tag to the error view with JavaScript.fetch(`/api/products/${productId}`)
.then(response => response.json())
.then(product => {
if (product.exists) {
showProductDetails(product);
} else {
window.location.href = '/not-found'; // server returns 404
}
});Google says server-side or pre-rendering is still a great idea because it makes your website faster for users and crawlers, and not all bots can run JavaScript. Google's docs say dynamic rendering, where a server detects bots and serves them a server-rendered version, was a workaround and not a long-term solution, and recommend server-side rendering, static rendering, or hydration instead.
Whether you need it depends on the content. Pages behind a login don't need to rank. Public pages that must rank are the first candidates for server-side or static output.
Paste a route into the URL Inspection tool and open the rendered HTML.
Confirm the headline, body text and links appear in the rendered HTML, not just in the shell.
View source or the DOM and confirm navigation uses <a href> with real paths.
4 questions people ask next, answered from the sources on this page.
Yes. Google runs JavaScript with an evergreen version of Chromium and indexes the rendered HTML, but the page may wait in the rendering queue.
No. Google says don't use fragments to load different page content, because Googlebot can't reliably resolve them. Use the History API.
Not strictly, but Google still recommends server-side or pre-rendering because it makes the site faster and not all bots can run JavaScript.
Redirect to a URL that returns a 404 status, or add a noindex robots meta tag to error views with JavaScript.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.