We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c535249 commit 6aa2a97Copy full SHA for 6aa2a97
lib/resources/script.js
@@ -100,7 +100,12 @@ function initSearch(name) {
100
'constructor' : 4
101
};
102
103
- var baseHref = $('body').data('base-href');
+ var baseHref = '';
104
+ if (!$('body').data('using-base-href')) {
105
+ // If dartdoc did not add a base-href tag, we will need to add the relative
106
+ // path ourselves.
107
+ baseHref = $('body').data('base-href');
108
+ }
109
110
function findMatches(q) {
111
var allMatches = []; // list of matches
lib/templates/html/_head.html
@@ -31,7 +31,8 @@
31
</head>
32
33
{{! We don't use <base href>, but we do lookup the htmlBase from javascript. }}
34
-<body data-base-href="{{{htmlBase}}}">
+<body data-base-href="{{{htmlBase}}}"
35
+ data-using-base-href="{{{useBaseHref}}}">
36
37
<div id="overlay-under-drawer"></div>
38
0 commit comments