We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 921e931 commit 603978bCopy full SHA for 603978b
1 file changed
src/frame/lib/path-utils.js
@@ -102,13 +102,16 @@ export function getProductStringFromPath(href) {
102
103
if (href === '/') return 'homepage'
104
105
+ // The first segment will always be empty on this split
106
const pathParts = href.split('/')
107
108
if (pathParts.includes('early-access')) return 'early-access'
109
110
// For rest pages the currentProduct should be rest
111
// We use this to show SidebarRest, which is a different sidebar than the rest of the site
112
if (pathParts[1] === 'rest') return 'rest'
113
+ if (pathParts[1] === 'copilot') return 'copilot'
114
+ if (pathParts[1] === 'get-started') return 'get-started'
115
116
return productIds.includes(pathParts[2]) ? pathParts[2] : pathParts[1]
117
}
0 commit comments