Skip to content

Commit

Permalink
chore(www): Title doesn't update when opening in a new tab until focu…
Browse files Browse the repository at this point in the history
…sed (#14661)

When opening a link from Gatsby site in a new tab (via cmd+click for example), the new tab title is not correctly updated from its default title. 
Related to:
nfl/react-helmet#315
nfl/react-helmet#314
  • Loading branch information
n8tb1t authored and freiksenet committed Jun 11, 2019
1 parent c5ec3f5 commit 6219656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/components/site-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const SiteMetadata = ({ pathname }) => {
`)

return (
<Helmet defaultTitle={title} titleTemplate={`%s | ${title}`}>
<Helmet defer={false} defaultTitle={title} titleTemplate={`%s | ${title}`}>
<html lang="en" />
<link rel="canonical" href={`${siteUrl}${pathname}`} />
<meta name="docsearch:version" content="2.0" />
Expand Down

0 comments on commit 6219656

Please sign in to comment.