JavaScript rendering · JavaScript content and links
Hash-based routing
This page switches between two views with #/ fragment URLs. Search engines ignore fragments, so both views count as one URL.
How this page is built
The links below point at #/overview and #/details. A small script shows one view at a time, based on the fragment, as a single page app router would. Each view has a matching ID, so the links are not broken bookmarks.
Overview view
In a single page app, this would be one route with its own content.
Details view
This would be a second route. It has its own fragment, but the same URL as the overview.
Why it matters
Everything after the # in a URL is a fragment. Browsers never send it to the server, and search engines treat every fragment of a URL as the same page. A site that uses fragments for its routes therefore looks like one page to Google, and only the view shown first is indexed.
Hash routing was common in early single page apps because it works without any server set-up.
How to check it
Look at the links in the navigation: if they start with #/, the site uses hash routing. Crawl tools treat these as links to the same page, so the crawl finds far fewer pages than the site seems to have.
How to fix it
Use the History API so each view has a real path, such as /details, and make the server return the right content for each one. Most routers offer this as a setting.