Skip to content

Commit 16c3fd5

Browse files
committed
go back to using path.join
1 parent 1afe169 commit 16c3fd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/all-products.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sortedProductIds.forEach(productId => {
4747
const toc = slash(path.join(dir, 'index.md'))
4848
const { data } = frontmatter(fs.readFileSync(toc, 'utf8'))
4949
const applicableVersions = getApplicableVersions(data.versions, toc)
50-
const href = removeFPTFromPath(`/${applicableVersions[0]}/${productId}`)
50+
const href = removeFPTFromPath(slash(path.join('/', applicableVersions[0], productId)))
5151

5252
internalProducts[productId] = {
5353
id: productId,

0 commit comments

Comments
 (0)