1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Learning track UI strings on ToC landing pages too (#45711)

Co-authored-by: Hector Alfaro <hectorsector@github.com>
This commit is contained in:
Peter Bengtsson
2023-11-08 11:15:40 -05:00
committed by GitHub
parent 63bb10994a
commit 8cb0aa1998

View File

@@ -127,6 +127,9 @@ export const getServerSideProps: GetServerSideProps<Props> = async (context) =>
additionalUINamespaces.push('product_guides')
} else if (relativePath?.endsWith('index.md')) {
props.tocLandingContext = getTocLandingContextFromRequest(req)
if (props.tocLandingContext.currentLearningTrack?.trackName) {
additionalUINamespaces.push('learning_track_nav')
}
} else {
// All articles that might have hover cards needs this
additionalUINamespaces.push('popovers')