Skip to content

Commit ef34b91

Browse files
committed
fix: false positive redirect warning for trailing slash
1 parent e708ebe commit ef34b91

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/puppeteer/tasks

1 file changed

+1
-1
lines changed

packages/core/src/puppeteer/tasks/html.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const inspectHtmlTask: PuppeteerTask = async (props) => {
128128
return routeReport
129129
}
130130
// ignore redirect from site to site/
131-
if (withoutTrailingSlash(response.redirected) !== runtimeSettings.siteUrl.href)
131+
if (withoutTrailingSlash(response.redirected) !== withoutTrailingSlash(runtimeSettings.siteUrl.href))
132132
logger.info('Redirected url detected, this may cause issues in the final report.', response.redirected)
133133

134134
// check if redirect url is already queued, if so we bail on this route

0 commit comments

Comments
 (0)