Skip to content

Commit b42b555

Browse files
authored
fix modifiedHtml
1 parent 76a4ff8 commit b42b555

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

netlify/edge-functions/inject-env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default async (request, context) => {
33
const url = new URL(request.url);
44

55
// Only process HTML pages
6-
const isHtmlPage = url.pathname.endsWith('.html') || url.pathname === '/';
6+
const isHtmlPage = url.pathname.endsWith('.html') || url.pathname === '/'||url.pathname.startsWith('/s=');
77
if (!isHtmlPage) {
88
return; // Let the request pass through unchanged
99
}

0 commit comments

Comments
 (0)