Skip to content

Commit

Permalink
fix staging/production title
Browse files Browse the repository at this point in the history
  • Loading branch information
Aibono1225 committed May 22, 2024
1 parent fa2ecb3 commit fa61a5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/head/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ const Head = ({
return `${siteTitle} | ${homepageTitle}`;
};

const fullTitle = generateTitle(location.pathname, pageTitle);
const fullTitle = generateTitle(
location.pathname.replace('/rules', ''),
pageTitle
);

const canonical = parentSiteUrl + (location.pathname || '');

Expand Down

0 comments on commit fa61a5e

Please sign in to comment.