1
0
mirror of synced 2026-01-11 03:01:04 -05:00

Merge pull request #9932 from github/lee-dohm-index-page-apostrophe-rendering

Fix rendering of titles on index pages that contain apostrophes
This commit is contained in:
Ramya Parimi
2021-09-10 12:29:35 -05:00
committed by GitHub

View File

@@ -33,7 +33,7 @@ export const useTocLandingContext = (): TocLandingContextT => {
export const getTocLandingContextFromRequest = (req: any): TocLandingContextT => {
const isEarlyAccess = req.context.page?.documentType === 'early-access'
return {
title: req.context.page.title,
title: req.context.page.titlePlainText,
productCallout: req.context.page.product || '',
introPlainText: req.context.page.introPlainText,
tocItems: (req.context.genericTocFlat || req.context.genericTocNested || []).map((obj: any) =>