---
title: "Remove Fragment from Canonical URL for Better SEO | Drosera SEO"
description: "Your canonical URL contains a fragment (the part after the # symbol). Canonical URLs should point to the main version of a page without any fragments, as fragm…"
image: "https://droseraseo.com/static/images/drosera-og-image.png"
canonical: "https://www.droseraseo.com/en/technical-seo/metadata-analyzer/canonical-url-has-fragment"
language: "en"
---

# Remove Fragment from Canonical URL for Better SEO

Metadata Analyzer

## What is this warning?

Your canonical URL contains a fragment (the part after the # symbol). Canonical URLs should point to the main version of a page without any fragments, as fragments are typically used for in-page navigation and don't represent different content. Including fragments in canonical URLs can confuse search engines about which version of the page is the preferred one.

## How to Fix This Issue

### How to Fix It

#### The Problem

```
<link rel="canonical" href="https://example.com/page#section1">
```

#### The Solution

Remove the fragment (everything after and including the #) from the canonical URL.

```
<link rel="canonical" href="https://example.com/page">
```

#### Why This Works

A clean canonical URL without fragments ensures that search engines understand the main page as the authoritative version, consolidating all SEO signals to the correct URL and preventing potential duplicate content issues.

### SEO Impact

This issue can affect your site's search engine rankings and user experience. Addressing it promptly helps ensure optimal performance and visibility in search results.

### Automatic Detection

Drosera SEO automatically checks for this warning during site analysis, along with hundreds of other technical SEO issues.

## Other Metadata Analyzer issues

- [Add @type to Your Schema.org Data to Define Its Meaning](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/schema-org-data-missing-type)
- [Add Missing Content to Meta Tags for Better SEO](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/missing-content-in-meta-tag)
- [Add Missing Meta Tags to Improve SEO and Mobile Experience](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/missing-essential-meta-tag)
- [Add Open Graph Tags to Control How Your Content Appears on Social Media](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/no-open-graph-data)
- [Add Twitter Card Markup for Richer Sharing on Twitter](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/no-twitter-card-data)
- [Canonical URL With a Query String: When It's Fine and When to Fix It](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/canonical-url-has-query-string)
- [Complete Your Open Graph Data by Adding Required Properties](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/missing-required-open-graph-property)
- [Complete Your Twitter Card Data by Adding Required Fields](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/missing-required-twitter-card-field)
- [Consider Using JSON-LD for Schema.org Implementation](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/schema-org-implemented-with-microdata)
- [Declare a Canonical URL for Every Page](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/missing-canonical-url)
- [Declare Only One Canonical URL per Page](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/multiple-canonical-urls)
- [Expand Short Meta Tag Content for More Impact](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/meta-tag-content-too-short)
- [Expand Your Meta Description to Improve Click-Through Rate](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/meta-description-too-short)
- [Fill in Empty Meta Tags to Improve SEO](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/empty-essential-meta-tag)
- [Fix Empty Canonical URL to Avoid SEO Issues](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/empty-canonical-url)
- [Fix Invalid Canonical URL Format](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/canonical-url-invalid-format)
- [Fix Invalid JSON-LD to Enable Rich Snippets in Search Results](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/invalid-schema-org-json-ld)
- [Fix Your Viewport Tag by Adding the initial-scale Property](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/viewport-missing-initial-scale)
- [Fix Your Viewport Tag by Adding the width Property](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/viewport-missing-width)
- [Improve Accessibility by Allowing Users to Zoom](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/viewport-disables-zoom)
- [Resolve Conflicting follow and nofollow Directives](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/conflicting-follow-and-nofollow)
- [Resolve Conflicting index and noindex Directives](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/conflicting-index-and-noindex)
- [Review noindex, follow Robots Directive](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/noindex-without-nofollow)
- [Secure Your Canonical URL by Using HTTPS](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/canonical-url-not-https)
- [Shorten Your Meta Description to Avoid Truncation in Search Results](https://www.droseraseo.com/en/technical-seo/metadata-analyzer/meta-description-too-long)

## See what's true on your own site

Crawl it and get this check, with 300+ others, as URL-level findings you can open and confirm.

[Download Free Trial](https://www.droseraseo.com/en/free-trial) [Purchase Single License](https://www.droseraseo.com/buy/single)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.droseraseo.com/#organization","name":"Fiscus Technology, LLC","url":"https://www.droseraseo.com/","logo":"https://www.droseraseo.com/static/images/drosera.png","founder":{"@type":"Person","name":"Seth Black"}},{"@type":"WebSite","@id":"https://www.droseraseo.com/#website","name":"Drosera SEO","url":"https://www.droseraseo.com/","publisher":{"@id":"https://www.droseraseo.com/#organization"}},{"@type":"TechArticle","@id":"https://www.droseraseo.com/en/technical-seo/metadata-analyzer/canonical-url-has-fragment#article","headline":"Remove Fragment from Canonical URL for Better SEO","name":"Remove Fragment from Canonical URL for Better SEO","description":"Your canonical URL contains a fragment (the part after the # symbol). Canonical URLs should point to the main version of a page without any fragments, as fragments are typically used for in-page navigation and don't represent different content. Including fragments in canonical URLs can confuse search engines about which version of the page is the preferred one.","url":"https://www.droseraseo.com/en/technical-seo/metadata-analyzer/canonical-url-has-fragment","image":{"@type":"ImageObject","url":"https://www.droseraseo.com/static/images/drosera-og-image.png","width":1200,"height":630},"author":{"@type":"Person","name":"Seth Black","url":"https://www.droseraseo.com/about"},"publisher":{"@id":"https://www.droseraseo.com/#organization"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://www.droseraseo.com/en/technical-seo/metadata-analyzer/canonical-url-has-fragment"},"inLanguage":"en-US","keywords":"technical SEO, SEO warning, Seth Black&#39;s SEO Analyzer"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.droseraseo.com/"},{"@type":"ListItem","position":2,"name":"Technical SEO Warnings","item":"https://www.droseraseo.com/en/technical-seo"},{"@type":"ListItem","position":3,"name":"Remove Fragment from Canonical URL for Better SEO","item":"https://www.droseraseo.com/en/technical-seo/metadata-analyzer/canonical-url-has-fragment"}]}]}
```
