Skip to content

Commit e4de4c1

Browse files
committed
Missed a check for useBaseHref
1 parent 652d513 commit e4de4c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/html/html_generator_instance.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ class HtmlGeneratorInstance {
419419
String outFile = path.joinAll(filename.split('/'));
420420
String content = template.renderString(data);
421421

422-
content = content.replaceAll(HTMLBASE_PLACEHOLDER, data.htmlBase);
422+
if (!_options.useBaseHref) {
423+
content = content.replaceAll(HTMLBASE_PLACEHOLDER, data.htmlBase);
424+
}
423425
_writer(outFile, content,
424426
element: data.self is Warnable ? data.self : null);
425427
if (data.self is Indexable) _indexedElements.add(data.self as Indexable);

0 commit comments

Comments
 (0)