Skip to content

Commit 6f2ee12

Browse files
committed
Disable canonical url
1 parent 8e34969 commit 6f2ee12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layouts/Base.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface Props {
77
image?: string;
88
}
99
10-
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
10+
// const canonicalURL = new URL(Astro.url.pathname, Astro.site);
1111
1212
const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
1313
---
@@ -21,7 +21,7 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
2121
<meta name="generator" content={Astro.generator} />
2222

2323
<!-- Canonical URL -->
24-
<link rel="canonical" href={canonicalURL} />
24+
<!-- <link rel="canonical" href={canonicalURL} /> -->
2525

2626
<!-- Primary Meta Tags -->
2727
<title>{title}</title>

0 commit comments

Comments
 (0)