1
0
mirror of synced 2025-12-21 02:46:50 -05:00

account for early access

This commit is contained in:
Sarah Schneider
2021-01-15 10:49:12 -05:00
parent c9d0e95bf9
commit 3ff1bfca5a
2 changed files with 17 additions and 6 deletions

View File

@@ -76,9 +76,13 @@ function getProductStringFromPath (href) {
if (href === '/') return 'homepage'
return allProducts[href.split('/')[2]]
? href.split('/')[2]
: href.split('/')[1]
const pathParts = href.split('/')
if (pathParts.includes('early-access')) return 'early-access'
return allProducts[pathParts[2]]
? pathParts[2]
: pathParts[1]
}
// Return the corresponding object for the product segment in a path