diff --git a/src/js/stacks.js b/src/js/stacks.js index 73344ce..d0f7d52 100644 --- a/src/js/stacks.js +++ b/src/js/stacks.js @@ -34,7 +34,7 @@ const formatHtml = (html) => { ) .replaceAll(/\s+<\/code>/g, '') .replaceAll(/href="\//g, 'href="/stacks/') - .replaceAll('https://stacks.bitrise.io/', '/stacks/'); + .replaceAll(stacksAPIBase, '/stacks/'); }; (async () => { @@ -43,7 +43,7 @@ const formatHtml = (html) => { const pageType = pagePath.split('/')[0]; if (pageType === '') { - const response = await fetch(`${stacksAPIBase}`); + const response = await fetch(`${stacksAPIBase}index.html`); /** @type {StacksPageData} */ const html = await response.text(); const match = html.match(//gms);