Skip to content

Commit e04081a

Browse files
authored
feat(experiment): stop rewriting Web/API page titles (#11218)
* 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.
1 parent 5d47456 commit e04081a

File tree

2 files changed

+1
-529
lines changed

2 files changed

+1
-529
lines changed

Diff for: build/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import {
4444
postProcessSmallerHeadingIDs,
4545
} from "./utils.js";
4646
import { getWebFeatureStatus } from "./web-features.js";
47-
import { rewritePageTitleForSEO } from "./seo.js";
4847
export { default as SearchIndex } from "./search-index.js";
4948
export { gather as gatherGitHistory } from "./git-history.js";
5049
export { buildSPAs } from "./spas.js";
@@ -537,8 +536,7 @@ export async function buildDocument(
537536
// a breadcrumb in the React component.
538537
addBreadcrumbData(document.url, doc);
539538

540-
const pageTitle = getPageTitle(doc);
541-
doc.pageTitle = rewritePageTitleForSEO(doc.mdn_url, pageTitle);
539+
doc.pageTitle = getPageTitle(doc);
542540

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

0 commit comments

Comments
 (0)