Merge branch 'develop' into smart-list

This commit is contained in:
Rohit
2025-07-07 01:12:36 +05:30
committed by GitHub

View File

@@ -879,13 +879,13 @@ export const DOMBrowserRenderer: React.FC<RRWebDOMBrowserRendererProps> = ({
if (headTagRegex.test(rebuiltHTML)) {
rebuiltHTML = rebuiltHTML.replace(
headTagRegex,
`<head>${cssInjection}`
"<head>",
`<head><base href="${snapshotData.baseUrl}">${minimalCSS}`
);
} else {
} else if (rebuiltHTML.includes("<html>")) {
rebuiltHTML = rebuiltHTML.replace(
/<html[^>]*>/i,
`<html><head>${cssInjection}</head>`
"<html>",
`<html><head><base href="${snapshotData.baseUrl}">${minimalCSS}</head>`
);
}