account for early access
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user