diff --git a/src/run/headers.ts b/src/run/headers.ts index 8ee7f7b7f4..c93c0a605b 100644 --- a/src/run/headers.ts +++ b/src/run/headers.ts @@ -238,7 +238,7 @@ export const setCacheControlHeaders = ( // temporary diagnostic to evaluate number of trailing slash redirects if (status === 308 && request.url.endsWith('/') !== nextConfig.trailingSlash) { getLogger() - .withFields({ trailingSlash: nextConfig.trailingSlash }) + .withFields({ trailingSlash: nextConfig.trailingSlash, location: headers.get('location') }) .log('NetlifyHeadersHandler.trailingSlashRedirect') }