Skip to content

Commit 1ce0606

Browse files
authored
Merge pull request #7
Adding current language to the canonical link to make it indexable by search engines
2 parents 26ade9e + 2913c5b commit 1ce0606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helmet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const Helmet: React.FC<HelmetProps> = ({children, ...props}) => {
77
return (
88
<ReactHelmet {...props}>
99
<html lang={language} />
10-
<link rel="canonical" href={`${siteUrl}${originalPath}`} />
10+
<link rel="canonical" href={`${siteUrl}/${language}${originalPath}`} />
1111
{languages.map((lang) => (
1212
<link
1313
rel="alternate"

0 commit comments

Comments
 (0)