On this page
What this issue is
A fragment is the part of a URL after the # symbol. Browsers use it to jump to a spot on a page and never send it to the server. Some older single-page apps (SPAs) used it as a router, so example.com/#!/pricing or example.com/#/pricing showed different content on one real page.
Why it costs you leads or sales
- Link to /#!/pricingShared or linked from your site
- Crawler requests /Fragment is dropped before the request
- Pricing contentNever seen as its own page
- Search rankingNo page to rank for pricing
Google requests the URL without the fragment, so every content view looks like the home page.
Example: a site with 40 content views behind fragment URLs versus the same site on clean paths.
How to check if your site has it
Click through your navigation
Watch the address bar. If it shows /#/ or /#!/ followed by a page name, you have the issue.
View the source of a deep page
Open the URL in a new tab, then use View Source. If the main text is missing and you see only an empty div and script tags, the content is injected by JavaScript.
Search Google
Search site:yourdomain.com and see whether only the home page appears. Fragment URLs will not be listed separately.
Use URL Inspection
In Google Search Console, inspect a clean-path URL and compare the rendered HTML with what you expect. Inspecting a # URL shows the URL without the fragment.
Crawl the site
Run a crawler such as Screaming Frog. Fragment links will not be followed as separate pages, so the crawl will find far fewer URLs than you expect.
How to fix it
Switch to history routing
In React Router use createBrowserRouter instead of createHashRouter. In Vue Router use createWebHistory instead of createWebHashHistory. In Angular, remove useHash: true from the router config.
Add a server fallback
Make direct requests to /pricing return your app or, better, pre-rendered HTML for that page. Use server-side rendering or static generation (for example Next.js, Nuxt or Angular SSR) so the content is in the HTML.
Set unique titles and canonicals
Give every route its own title, meta description and a self-referencing canonical tag.
Redirect old fragment URLs
The server cannot see fragments, so add a small script on the home page that reads location.hash and replaces it with the clean path.
Use real pages
If a custom script or embed creates #-based views, rebuild each view as a Webflow page with its own slug under Pages.
Remove the hash router script
Delete the custom code in Site settings > Custom code that switches views by hash.
Check Velo or custom code
Standard Wix pages use clean paths. If you use custom code that loads content by hash, move each view to its own page in the Pages menu.
Use permalinks, not hash routes
Go to Settings > Permalinks and use Post name. If a theme or page builder loads sections by hash, replace them with real pages or posts.
(function () {
var h = window.location.hash;
if (h.indexOf('#!/') === 0 || h.indexOf('#/') === 0) {
var path = h.replace(/^#!?\//, '/');
window.location.replace(path);
}
})();Fragment routing
- example.com/#!/pricing
- One indexable URL for the whole site
- Server never sees the page requested
Clean paths
- example.com/pricing
- Each page indexable on its own
- Server returns HTML with title and content
How to confirm it's fixed
- Navigation shows clean paths with no # in the address bar
- View Source on a deep URL shows the page's main text
- Each page has a unique title and canonical
- Old #! links redirect to the new path
- URL Inspection in Search Console shows the right rendered content
- New URLs are listed in your XML sitemap
- Analytics records each page under its own path
How to prevent it happening again
How FunnelGuard handles this
Questions people ask
Does Google index hash-bang (#!) URLs?
No, not as separate pages. Google ignores the fragment, so example.com/#!/pricing is treated as example.com/. The old _escaped_fragment_ crawling scheme is deprecated.
Why are my single-page app pages not showing in Google?
A common cause is fragment routing, where all views share one URL. Another is content that only appears after JavaScript runs. Use clean paths and server-side rendering or pre-rendering so each URL returns its content in the HTML.
How do I remove the hash from my URLs?
Switch your router to history mode, such as createBrowserRouter in React Router or createWebHistory in Vue Router. Then configure the server to return the app or pre-rendered HTML for each path, and redirect old hash links.
Are URLs with a # ever okay for SEO?
Yes, for in-page jumps such as /guide#pricing-table. They help users reach a section and are fine. They are a problem only when the fragment decides which page of content loads.
Can a server redirect a #! URL?
No. Browsers do not send the fragment to the server, so server rules cannot see it. Use a short JavaScript snippet that reads location.hash and replaces it with the clean path.
Do I need server-side rendering after moving to clean URLs?
It is the safest option. Google can render JavaScript, but rendering can be delayed, and many AI crawlers do not run it. Server-side rendering or static generation puts the content in the initial HTML.
Does FunnelGuard detect hash-bang URLs?
No. FunnelGuard does not check for this yet. Use a site crawler and Google Search Console to watch for it.
Related issues
- SEO-021Links only in JavaScript onclick handlers, not crawlable <a href>Fix guide
- SEO-023Pagination links missing so deep pages are never crawledFix guide
- SEO-024Crawl budget wasted on redirecting or 404 URLs in internal linksFix guide
- SEO-017Crawl traps: infinite calendars, session IDs, endless parameter combinationsFix guide
- SEO-001robots.txt Disallow: / left over from staging blocks the whole siteFix guide
- SEO-002robots.txt blocks a money page or landing page directoryFix guide