Skip to content

Commit

Permalink
feat(experiment): stop rewriting Web/API page titles (#11218)
Browse files Browse the repository at this point in the history
* Revert "fix(experiment): replace test group for Web/API page titles (#10955)"

This reverts commit 559f8fd.

* Revert "feat(experiment): rewrite Web/API page titles (#10926)"

This reverts commit b625183.
  • Loading branch information
caugner authored May 30, 2024
1 parent 5d47456 commit e04081a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 529 deletions.
4 changes: 1 addition & 3 deletions build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import {
postProcessSmallerHeadingIDs,
} from "./utils.js";
import { getWebFeatureStatus } from "./web-features.js";
import { rewritePageTitleForSEO } from "./seo.js";
export { default as SearchIndex } from "./search-index.js";
export { gather as gatherGitHistory } from "./git-history.js";
export { buildSPAs } from "./spas.js";
Expand Down Expand Up @@ -537,8 +536,7 @@ export async function buildDocument(
// a breadcrumb in the React component.
addBreadcrumbData(document.url, doc);

const pageTitle = getPageTitle(doc);
doc.pageTitle = rewritePageTitleForSEO(doc.mdn_url, pageTitle);
doc.pageTitle = getPageTitle(doc);

// Decide whether it should be indexed (sitemaps, robots meta tag, search-index)
doc.noIndexing =
Expand Down
Loading

0 comments on commit e04081a

Please sign in to comment.