Remove path concatenation in Algolia sync script

This commit is contained in:
Shrikant Sharat Kandula 2022-07-19 12:01:09 +05:30 committed by GitHub
parent bba78afc3b
commit 6f37a02653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,6 @@ const pages = {};
function pushChildPages(masterPage) {
if (masterPage.pages) {
masterPage.pages.forEach(page => {
if (masterPage.path)
page.path = (masterPage.path || masterPage.ref) + "/" + page.path;
pushChildPages(page);
page.pages = undefined;
pages[page.id] = page;