Skip to content

Commit 01cb08e

Browse files
EugeneHlushkomontogeek
authored andcommitted
fix(seo) canonical mustn't be relative (#3030)
1 parent 956cfab commit 01cb08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default locals => {
5555
<link key={ path } rel="stylesheet" href={ `/${path}` } />
5656
))}
5757
<link rel="manifest" href="/manifest.json" />
58-
<link rel="canonical" href={enforceTrailingSlash(locals.path)} />
58+
<link rel="canonical" href={`https://webpack.js.org${enforceTrailingSlash(locals.path)}`} />
5959
<link rel="apple-touch-icon" href="/images/icons/icon-192x192.png" />
6060
<link rel="apple-touch-icon" sizes="152x152" href="/images/icons/icon-152x152.png" />
6161
<link rel="icon" sizes="192x192" href="/images/icons/icon-192x192.png" />

0 commit comments

Comments
 (0)