diff --git a/.github/workflows/lighthouse-report.yml b/.github/workflows/lighthouse-report.yml index 41fd2dc71565..97bb2901a4ad 100644 --- a/.github/workflows/lighthouse-report.yml +++ b/.github/workflows/lighthouse-report.yml @@ -28,7 +28,7 @@ jobs: with: urls: | https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/ - https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/docs/ + https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/docs/installation configPath: ./.github/workflows/lighthouserc.json uploadArtifacts: true temporaryPublicStorage: true diff --git a/.github/workflows/scripts/format-lighthouse-score.js b/.github/workflows/scripts/format-lighthouse-score.js index 99ece0294c45..29d90976f73d 100644 --- a/.github/workflows/scripts/format-lighthouse-score.js +++ b/.github/workflows/scripts/format-lighthouse-score.js @@ -15,7 +15,9 @@ const createMarkdownTableRow = ({ pwa, reportUrl, }) => { - return `| ${url} | ${performance} | ${accessibility} | ${bestPractices} | ${seo} | ${pwa} | [View report](${reportUrl})|`; + return `| [${ + new URL(url).pathname + }](${url}) | ${performance} | ${accessibility} | ${bestPractices} | ${seo} | ${pwa} | [View report](${reportUrl})|`; }; const createSingleRow = ({summary, testUrl, reportPublicUrl}) => {